Im trying to work with Sessions in Laravel 5 Middleware, but they are not working. To be specific - var_dump(Session::all()); at the start of handle method give
var_dump(Session::all());
You need to use
\Session::save();
Whenever you want to save the modification so lets say I want to store the language of the user
\Session::put('lang','en'); \Session::save();
When you refresh now you will find your newly created key.