byos_laravel/app/Console/Commands/ExampleRecipesSeederCommand.php
Benjamin Nussbaum f530875210 fix(#12): correct mispelled word recipe
fix(#12): correct mispelled word recipe
2025-04-26 14:59:28 +02:00

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);
}
}