route("users.login"); // If the user has the correct permission - Then go to the correct page if($user->hasAnyPermission($permissions)) { return $next($request); } // If the user does not have the correct permission - Send them to home page return redirect()->route("root.index"); } }