auth()->user() returns null in Laravel 9, Passport Api middleware
I'm using Passport package for authentation and the auth is working fine in routes and controllers. I want to make a custom middleware for Admin chekcing, But auth()->user() returns null. This is my middleware: public function handle(Request $request, Closure $next)…