Artisan.page

make:job-middleware

Create a new job middleware class

Terminal
php artisan make:job-middleware [-f|--force] [--test] [--pest] [--phpunit] [--] <name>

Options

forceOptional

Create the class even if the job middleware already exists

pestOptional

Generate an accompanying Pest test for the Middleware

phpunitOptional

Generate an accompanying PHPUnit test for the Middleware

testOptional

Generate an accompanying Test test for the Middleware

Arguments

nameRequired

The name of the middleware