Skip to content

Commit 524c5f5

Browse files
committed
add runtime command input
1 parent 7976260 commit 524c5f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Commands/SeedDatabaseCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class SeedDatabaseCommand extends BaseSeedCommand
1616

1717
public function handle()
1818
{
19+
$this->addOption('database', default: null);
20+
$this->addArgument('class', default: 'DatabaseSeeder');
21+
1922
(new NativeServiceProvider($this->laravel))->rewriteDatabase();
2023

2124
return parent::handle();

0 commit comments

Comments
 (0)