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:
Matthew Muscat authored and GitHub committed 2017-05-22 14:37:01 +10:00
1 parent 5dd169b33d
commit 5e0ef251d4
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ class HtmlServiceProvider extends ServiceProvider
protected function registerFormBuilder()
{
$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']);
});