How to check whether authorized user in the ajax request in laravel 5?

Friends, tell me why the ajax request Auth::check()=false, if the user is logged in?
If it matters, the data requests a model backbone, X-CSRF-TOKEN is correctly set.
July 9th 19 at 10:44
1 answer
July 9th 19 at 10:46
If I am not mistaken CSRF-TOKEN for other purposes, there is no record of something like laravel_session?

Not exactly sure when making Ajax requests, the cookie is marked as http_only is also sent to the server?
Thanks for the reply, the solution was the following: when specifying a routing you had to explicitly call intermediaries
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Session\Middleware\StartSession::class,
Without them started session ) - Joanny_Ward commented on July 9th 19 at 10:49

Find more questions by tags AJAXLaravel