Laravel - Artisan Console - Options With Values

Next, let's take a look at an option that expects a value. If the user must specify a value for an option, you should suffix the option name with a = sign:

    
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'mail:send {user} { --queue=}';
	

In this example, the user may pass a value for the option like so. If the option is not specified when invoking the command, its value will be null:

    
    php artisan mail:send 1 --queue=default
	

You may assign default values to options by specifying the default value after the option name. If no option value is passed by the user, the default value will be used:

    
    mail:send {user} { --queue=default}