Merge pull request #14 from crynobone/master

Get token from $sessionStore when token is empty
This commit is contained in:
Taylor Otwell committed 2014-10-16 09:38:30 -05:00
commit b04be9a84b
1 file changed
+3 -1
+3 -1
View File
@@ -178,7 +178,9 @@ class FormBuilder {
*/
public function token()
{
return $this->hidden('_token', $this->csrfToken);
$token = ! empty($this->csrfToken) ? $this->csrfToken : $this->session->getToken();
return $this->hidden('_token', $token);
}
/**