We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 283bb24 commit 83f4410Copy full SHA for 83f4410
src/Illuminate/Database/Console/Migrations/MigrateCommand.php
@@ -75,7 +75,10 @@ public function handle()
75
// seed task to re-populate the database, which is convenient when adding
76
// a migration and a seed at the same time, as it is only this command.
77
if ($this->option('seed') && ! $this->option('pretend')) {
78
- $this->call('db:seed', ['--force' => true]);
+ $this->call('db:seed', array_filter([
79
+ '--database' => $this->option('database'),
80
+ '--force' => true,
81
+ ]));
82
}
83
84
0 commit comments