Merge pull request #14 from crynobone/master
Get token from $sessionStore when token is empty
This commit is contained in:
commit
b04be9a84b
1 file changed
+3
-1
+3
-1
@@ -178,7 +178,9 @@ class FormBuilder {
|
|||||||
*/
|
*/
|
||||||
public function token()
|
public function token()
|
||||||
{
|
{
|
||||||
return $this->hidden('_token', $this->csrfToken);
|
$token = ! empty($this->csrfToken) ? $this->csrfToken : $this->session->getToken();
|
||||||
|
|
||||||
|
return $this->hidden('_token', $token);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user