
ショコラ
Livewire コマンドのサンプル
ララベルコマンドの簡単なサンプルを用意しました。

もっさん先輩
エコーするだけのコマンドです。
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class Hello extends Command
{
protected $signature = 'hello {name}';
protected $description = 'エコー';
public function handle()
{
echo 'Hello,'.$this->argument('name'),PHP_EOL;
}
}
コマンドの実行
./artisan hello mossan
以上