1

I meet Session store not set on request error on Laravel5.2. But general solution is write

Route::group(['middleware' => ['web']], function(){
    // routes file  
});

But this code is already write on my routes.php

Why this error apper?

1010Green
  • 21
  • 4

1 Answers1

1

If you're using 5.2.27 or hgher, try to remove web middleware or just temporarily comment it for testing purposes:

So, just do this:

//Route::group(['middleware' => ['web']], function(){
    routes file  
//});
Community
  • 1
  • 1
Alexey Mezenin
  • 158,981
  • 26
  • 290
  • 279
  • 1
    Thanks for your answer. I'm using laravel 5.2.31. And if I remove ```Route::group(['middleware' => ['web']], function(){ routes file });``` the error is disappered. – 1010Green May 05 '16 at 09:10
  • 1
    @AlexeyMezenin I accidentally downvoted this yesterday when I wanted to upvote it. Didn't realise until now, but I can't change my vote unless you edit the answer. If you'd like to do that, I'd be happy to change the vote. Sorry about the trouble. :( – Joel Hinz May 06 '16 at 11:43
  • @JoelHinz, it happens, don't worry about this. ) And thanks for doing this. – Alexey Mezenin May 06 '16 at 11:53