Using Laravel Auth middleware
问题 Laravel 5.1 really had minimal documentation.. I need clear idea about how to protect routes using Auth middileware.. Documentation tells to add "middleware" => "auth" parameter to route. or can do public function __construct() { $this->middleware('auth'); } But How to use Auth middleware for actual user authentication and auto redirection to /login from protected routes ?? 回答1: In Kernel.php - there are registered middlewares under protected $routeMiddleware like this: /** * The application