Fix getToken rename issue in 5.4

This commit is contained in:
Shawn Tunney committed 2017-01-23 09:24:11 -05:00
1 parent 92f3ba71c5
commit 8c99401c58
1 file changed
+1 -1
+1 -1
View File
@@ -49,7 +49,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());
$form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->token());
return $form->setSessionStore($app['session.store']);
});