laravel create simple command artisan code example
Example 1: how create new command in laravel
php artisan make:command SendEmails
Example 2: laravel create command tutorial
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'email:send {user}';