laravel programmatically call console command code example
Example 1: laravel create command tutorial
$arguments = $this->arguments();
Example 2: laravel create command tutorial
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'email:send {user} {--queue}';