aleex, check "app/Http/Kernel.php" where middleware is defined.
There you can check middleware groups. You can see that in the web middleware group you have things for session and cookies (which is used for auth).
Also, theres information on it at https://laravel.com/docs/master/middleware and Laracasts.
Im guessing Rikcons answer is correct, however I just read the problem but did not spend time on it since no using the web middleware is a classic source of errors in laravel 5.2
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community