3 namespace App\Console\Commands;
5 use App\Models\ChatLib;
6 use Illuminate\Console\Command;
8 class ChatlibGenerate extends Command {
11 * The name and signature of the console command.
15 protected $signature = 'chatlib:generate {which=de} {amount=50}';
18 * The console command description.
22 protected $description = 'Generates samples from a ChatLib database';
25 * Execute the console command.
29 public function handle() {
31 $db->loadFrom($this->argument('which'));
33 $amount = intval($this->argument('amount'));
34 for ($i = 0; $i < $amount; ++$i) {
35 $this->line($db->generate());