login(Customer::find(100)); // \auth('customer')->login(Customer::find(104)); if (!auth('customer')->check()) { return response()->json(Result::failed('Unauthorized', Result::UNAUTHORIZED)); } return $next($request); } }