First of all you don't have to do session::start because Laravel does that for you ;)
Anyway, what error do you get? You must get some fail message right?
Hi,
I'm trying to upgrade Laravel from 5.1 to 5.2 in my project. I have done all instructions from the official manual and project works normally, but some PHPUnit tests are failed.
In all failed tests POST call like following is used:
\Session::start(); $this->call("POST", "/myroute", [ '_token' => csrf_token(), 'param' => $param ]);
Previously in Laravel 5.1 this worked well, but in new Laravel 5.2.45 version, request is refused in the controller. I believe it happens due to some changes with csrf verifications, but I do not know how to fix this issue...
First of all you don't have to do session::start because Laravel does that for you ;)
Anyway, what error do you get? You must get some fail message right?
Please or to participate in this conversation.