Laravel 8 輸入描述

2021-07-17 17:29 更新

您可以使用冒號將參數(shù)和描述開來,以實現(xiàn)為輸入?yún)?shù)和選項指定描述。如果您需要一些額外的空間來定義您的命令,可以將其隨意分開到多行:

/**
 * 命令的名稱及其信號
 *
 * @var string
 */
protected $signature = 'email:send
                        {user : The ID of the user}
                        {--queue= : Whether the job should be queued}'; 
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號