Laravel – Session store not set on request

You’ll need to use the web middleware if you need session state, CSRF protection, and more.

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

Leave a Comment