mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
20 lines
523 B
PHP
20 lines
523 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Database\Seeders\ExampleRecipesSeeder;
|
|
use Illuminate\Console\Command;
|
|
use Illuminate\Contracts\Console\PromptsForMissingInput;
|
|
|
|
class ExampleRecipesSeederCommand extends Command implements PromptsForMissingInput
|
|
{
|
|
protected $signature = 'recipes:seed {user_id}';
|
|
|
|
protected $description = 'Seed example recipes';
|
|
|
|
public function handle(ExampleRecipesSeeder $seeder): void
|
|
{
|
|
$user_id = $this->argument('user_id');
|
|
$seeder->run($user_id);
|
|
}
|
|
}
|