Skip to content

Session store not set on request #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
devstorm321 opened this issue Oct 27, 2021 · 2 comments
Open

Session store not set on request #22

devstorm321 opened this issue Oct 27, 2021 · 2 comments

Comments

@devstorm321
Copy link

500 internal server errors when logging in.

{message: "Session store not set on request.", exception: "RuntimeException",…}
exception: "RuntimeException"
file: "E:\php\laravel-vue-boilerplate\vendor\laravel\framework\src\Illuminate\Http\Request.php"
line: 483
message: "Session store not set on request."
trace: [{file: "E:\php\laravel-vue-boilerplate\app\Http\Controllers\Auth\LoginController.php", line: 72,…},…]

devstorm321 pushed a commit to devstorm321/laravel-vue-boilerplate that referenced this issue Oct 27, 2021
@nawazm92
Copy link

Thanks @devstorm321, helpful 👍 , hope your PR get merged soon!

@doubleg0re
Copy link

I found the solution from https://laracasts.com/discuss/channels/laravel/sanctum-throws-session-store-not-set-on-request

I was able to resolve this by adding \Illuminate\Session\Middleware\StartSession::class to the api middleware group in Kernel.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants