Artisan.page

make:job

Create a new job class

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

Options

batchedOptional

Indicates that the job should be batchable

forceOptional

Create the class even if the job already exists

pestOptional

Generate an accompanying Pest test for the Job

phpunitOptional

Generate an accompanying PHPUnit test for the Job

syncOptional

Indicates that the job should be synchronous

testOptional

Generate an accompanying Test test for the Job

Arguments

nameRequired

The name of the job