Accessing Command Arguments and Options in Laravel
Need to work with command arguments and options in your Artisan commands? Laravel makes it super simple!
Basic Access Methods
Get single values with argument and option:
// Get a single argument
$userId = $this->argument('user');
// Get a single option
$queueName = $this->option('queue');
Getting