mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
fix(#12): correct mispelled word recipe
fix(#12): correct mispelled word recipe
This commit is contained in:
parent
302730c81e
commit
f530875210
17 changed files with 93 additions and 46 deletions
|
|
@ -1,20 +0,0 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
20
app/Console/Commands/ExampleRecipesSeederCommand.php
Normal file
20
app/Console/Commands/ExampleRecipesSeederCommand.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue