how to create middleware using command in laravel 8 code example
Example 1: laravel make middleware
php artisan make:middleware CheckAge
Example 2: middleware command in laravel
php artisan make:middleware NameOfTheMiddleware
php artisan make:middleware CheckAge
php artisan make:middleware NameOfTheMiddleware