Skip to content

Commit

Permalink
Merge pull request #284 from maddhatter/5.4
Browse files Browse the repository at this point in the history
5.4 Fixes
  • Loading branch information
adamgoose authored Jan 26, 2017
2 parents 478288d + 23223c6 commit 7570f25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function close()
*/
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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/HtmlServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function registerHtmlBuilder()
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']);
});
Expand Down

0 comments on commit 7570f25

Please sign in to comment.