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

make:job

Create a new job class

Options

  • 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 class Required
php artisan make:job [--sync] [--test] [--pest] [--] <name>