check() && !$request->bearerToken()) { Auth::guard('api')->user()->last_seen_at = Carbon::now()->format('Y-m-d H:i:s'); Auth::guard('api')->user()->save(); } return $next($request); } }