Fix for undefined function getToken() on Laravel 5.4
Fixes issue as described in https://github.com/LaravelCollective/html/issues/342
This commit is contained in:
1 parent
5dd169b33d
commit
5e0ef251d4
1 file changed
+1
-1
@@ -61,7 +61,7 @@ class HtmlServiceProvider extends ServiceProvider
|
|||||||
protected function registerFormBuilder()
|
protected function registerFormBuilder()
|
||||||
{
|
{
|
||||||
$this->app->singleton('form', function ($app) {
|
$this->app->singleton('form', function ($app) {
|
||||||
$form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->getToken(), $app['request']);
|
$form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->token(), $app['request']);
|
||||||
|
|
||||||
return $form->setSessionStore($app['session.store']);
|
return $form->setSessionStore($app['session.store']);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user