Level 80
@oriolhp Show us your routes file. Could be related to middleware.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I was using laravel 5.1 and used to have a session route for checking sessions
$router->get('session', function()
{
return dd(Session::all());
});
Which allways returned at least an array of 3:
array:3 [▼
"_token" => "3hSm8uzRVrZNxCgBJLflsnyr6LT6zPsPc22mODhi"
"_previous" => array:1 [▶]
"flash" => array:2 [▶]
]
Now in laravel 5.2 the same route returns a null array and sessions are not working in a new fresh installation of 5.2.*
Please or to participate in this conversation.