You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded from Laravel 10 to 11 and I keep running into the issue of session not being set even though it's in my middleware. I've tried every solution I could think of or find online. I've changed the app configuration (changed it back since the upgrade guide recommends not changing it), I've moved around middleware, etc. if anyone has any suggestions, it would be greatly appreciated.
Tests\Unit\Views\LoanControllerEditViewTest::testConfirmPhoneNumber
Illuminate\View\ViewException: Session store not set on request. (View: /app/resources/views/loans/edit.blade.php)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I recently upgraded from Laravel 10 to 11 and I keep running into the issue of session not being set even though it's in my middleware. I've tried every solution I could think of or find online. I've changed the app configuration (changed it back since the upgrade guide recommends not changing it), I've moved around middleware, etc. if anyone has any suggestions, it would be greatly appreciated.
Tests\Unit\Views\LoanControllerEditViewTest::testConfirmPhoneNumber
Illuminate\View\ViewException: Session store not set on request. (View: /app/resources/views/loans/edit.blade.php)
/app/vendor/laravel/framework/src/Illuminate/Http/Request.php:577
/app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:60
/app/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:75
/app/vendor/laravel/framework/src/Illuminate/View/View.php:209
/app/vendor/laravel/framework/src/Illuminate/View/View.php:192
/app/vendor/laravel/framework/src/Illuminate/View/View.php:161
/app/tests/phpunit/Unit/Views/LoanControllerEditViewTest.php:186
/app/tests/phpunit/Unit/Views/LoanControllerEditViewTest.php:113
Caused by
RuntimeException: Session store not set on request.
/app/vendor/laravel/framework/src/Illuminate/Http/Request.php:577
/app/vendor/spatie/laravel-html/src/Html.php:541
/app/vendor/spatie/laravel-html/src/Html.php:299
/app/storage/framework/views/145179759c6cf763a402a5c84dd71089.php:450
/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:123
/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
/app/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
/app/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:75
/app/vendor/laravel/framework/src/Illuminate/View/View.php:209
/app/vendor/laravel/framework/src/Illuminate/View/View.php:192
/app/vendor/laravel/framework/src/Illuminate/View/View.php:161
/app/tests/phpunit/Unit/Views/LoanControllerEditViewTest.php:186
/app/tests/phpunit/Unit/Views/LoanControllerEditViewTest.php:113
Beta Was this translation helpful? Give feedback.
All reactions