The Laravel Artisan Cheatsheet now has an API. Learn more.

make:middleware

Create a new middleware class

Arguments

  • name - The name of the class Required
php artisan make:middleware <name>