route laravel middleware code example Example: laravel make middleware php artisan make:middleware CheckAge