Closed kilrizzy closed 7 years ago
Hi @kilrizzy,
Maybe you can keep backward compatibility, with something like this (:warning: untested) :
$csrf = method_exists($this->session, 'getToken') ? $this->session->getToken() : $this->session->token();
Cheers, Tortue Torche
We ended up using tortuetorche's code above.
Laravel 5.4 removed session->getToken() in place of session->token()
(However I'm not sure if this would be compatible with older laravel versions and may need a new branch/version)