how we add new middleware in laravel for customer code example
Example 1: laravel make middleware
php artisan make:middleware CheckAge
Example 2: create middleware laravel
php artisan make:middleware <middleware-name>
php artisan make:middleware CheckAge
php artisan make:middleware <middleware-name>