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