Completely Disable Session Feature in Laravel 9
If you’re developing API in Laravel then you don’t need any session and cookie things. For this you must remove these providers in app/Http/Kernel.php file.
Delete config/session.php file. And at last change session word to passport` in guard key from config/auth.php file. If you don’t do that then you get Target class [session.store] does not exist error.
0 yorum