how to know middleware works in laravel code example Example: laravel make middleware php artisan make:middleware CheckAge