Uncomment this line in app>>provider>>RouteServiceProvider.php file
// protected $namespace = 'AppHttpControllers';
/*
Laravel: If you are using Jetstream, and you are using the middleware:
'auth:sanctum',
config('jetstream.auth_session')
validate that you have:
*/
use LaravelJetstreamHttpMiddlewareAuthenticateSession; //-- on top
'middleware' => ['web'],
'auth_session' => AuthenticateSession::class,