AttributeIlluminate\Console\Attributes\Usage
#[Usage]
Defines the usage example for an Artisan command.
Disponível desde
Laravel 13.0
Aplicável em
class
Parâmetros
$usagestringA string describing how to use the command.
Uso prático
use Illuminate\Console\Command;
use Illuminate\Console\Attributes\Usage;
#[Usage('billing:sync --help')]
class SyncBillingData extends Command
{
protected $signature = 'billing:sync';
public function handle(): int
{
//...
return self::SUCCESS;
}
}