Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 27, 2020
1 parent eb7f854 commit f31bfe2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/Illuminate/Database/Console/Migrations/FreshCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ public function handle()
$this->runSeeder($database);
}

$this->laravel[Dispatcher::class]->dispatch(
new DatabaseRefreshed()
);
if ($this->laravel->bound(Dispatcher::class)) {
$this->laravel[Dispatcher::class]->dispatch(
new DatabaseRefreshed
);
}

return 0;
}
Expand Down
8 changes: 5 additions & 3 deletions src/Illuminate/Database/Console/Migrations/RefreshCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ public function handle()
$this->runSeeder($database);
}

$this->laravel[Dispatcher::class]->dispatch(
new DatabaseRefreshed()
);
if ($this->laravel->bound(Dispatcher::class)) {
$this->laravel[Dispatcher::class]->dispatch(
new DatabaseRefreshed
);
}

return 0;
}
Expand Down

0 comments on commit f31bfe2

Please sign in to comment.