laravel-vue-boilerplate
laravel-vue-boilerplate copied to clipboard
Session store not set on request
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,…},…]
Thanks @devstorm321, helpful 👍 , hope your PR get merged soon!
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