initial: bootstrap from BukidBountyApp base
This commit is contained in:
19
app/Console/Commands/DemoCommand.php
Normal file
19
app/Console/Commands/DemoCommand.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Hypervel\Console\Command;
|
||||
|
||||
class DemoCommand extends Command
|
||||
{
|
||||
protected ?string $signature = 'demo:hi {--name=}';
|
||||
|
||||
protected string $description = 'Hyperf Demo Command';
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$this->info('Hello ' . ($this->option('name') ?: 'Hypervel'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user