Home >Backend Development >PHP Tutorial >Laravel 5.2 keeps reporting error Session store not set on request when using session

Laravel 5.2 keeps reporting error Session store not set on request when using session

WBOY
WBOYOriginal
2016-08-08 08:50:261101browse

Laravel 5.2 keeps reporting error Session store not set on request when using session

I have been searching online for a long time, and they all said that I need to configure middleware for routing. I have also configured it, and I have not touched Kernel.php.

Laravel 5.2 keeps reporting error Session store not set on request when using session

I have been struggling with this problem for several days. The csrf has no effect. It obviously references the middleware. I even put it directly into the global middleware but it doesn’t work. It’s really strange. I rebuilt a laravel project. Like this

Laravel 5.2 keeps reporting error Session store not set on request when using session

I have tried routing configuration middleware, and the version is the latest. There is also code for automatically loading web middleware in RouteServiceProvider, but it doesn’t work. These methods can be found online, but they have no effect at all. .

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn