阅读(2891) (8)

Laravel 8 输入描述

2021-06-29 17:48:52 更新

您可以使用冒号将参数和描述开来,以实现为输入参数和选项指定描述。如果您需要一些额外的空间来定义您的命令,可以将其随意分开到多行:

/**
 * 命令的名称及其信号
 *
 * @var string
 */
protected $signature = 'email:send
                        {user : The ID of the user}
                        {--queue= : Whether the job should be queued}';