has('loginId')){ return redirect()->route('backend.signin'); } return $next($request); } }