Hidden
Hide command from the Artisan list
Description: Hides the command from the php artisan list output. The command can still be run directly.
Namespace: Illuminate\Console\Attributes\Hidden
Usage
use Illuminate\Console\Attributes\Hidden;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
#[Signature('internal:sync')]
#[Hidden]
class SyncInternalDataCommand extends Command
{
public function handle(): void
{
// This command won't appear in `php artisan list`
// but can still be run via: php artisan internal:sync
}
}