Merge pull request #284 from maddhatter/5.4

5.4 Fixes
This commit is contained in:
Adam Engebretson authored and GitHub committed 2017-01-26 13:27:05 -06:00
commit 7570f25d58
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -198,7 +198,7 @@ class FormBuilder
*/
public function token()
{
$token = ! empty($this->csrfToken) ? $this->csrfToken : $this->session->getToken();
$token = ! empty($this->csrfToken) ? $this->csrfToken : $this->session->token();
return $this->hidden('_token', $token);
}
+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']);
});