Home >Backend Development >PHP Tutorial >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.
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
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. .