user(); if (! $user->enable_portal) { Auth::guard('customer')->logout(); return response('Unauthorized.', 401); } return $next($request); } }