36 lines
683 B
PHP
36 lines
683 B
PHP
<?php
|
|
|
|
namespace Kai\KaiCommand;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
class KaiHelloCommand extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
* Tên lệnh sẽ được chạy: 'php artisan hello:world'
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'KaiHello';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Says hello to the given name.';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function handle()
|
|
{
|
|
|
|
$this->info("Hello, Kai! This command runs from your package.");
|
|
|
|
return Command::SUCCESS;
|
|
}
|
|
} |