Multiple User Models Laravel JWT Auth
问题 I have to user models in my eloquent: User OfficeUser OfficeUser is in defined in the JWT config as standard model. Now I have written a Middleware for authenticate each of them authUser: public function handle($request, Closure $next) { Config::set('auth.providers.users.model', \App\User::class); try { if (! $user = JWTAuth::parseToken()->authenticate()) { return response()->json(['user_not_found'], 404); } } catch (Tymon\JWTAuth\Exceptions\TokenExpiredException $e) { return response()->json