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

make:job

Create a new job class

Options

  • force - Create the class even if the job already exists Optional
  • sync - Indicates that job should be synchronous Optional
  • test - Generate an accompanying PHPUnit test for the Job Optional
  • pest - Generate an accompanying Pest test for the Job Optional

Arguments

  • name - The name of the job Required
php artisan make:job [-f|--force] [--sync] [--test] [--pest] [--] <name>