Two route-based middleware classes are present in Laravel 5 in app/Http/Middleware/. One of these classes is named Authenticate. It provides basic authentication and uses a contract.

In reference to routes, the middleware sits between the route and the controller: