auth->isUserAuthenticated()) { return $next($request, $response); } else { // Redirect to the login page return Redirect::create($response, '/login'); } } }