Skip to content

Commit

Permalink
Add load migrations for app run in console
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Oct 3, 2023
1 parent d6559d6 commit 92e14f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/SubscriptionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ public function configurePackage(Package $package): void
->askToStarRepoOnGitHub('laravelcm/laravel-subscriptions');
});
}

public function bootingPackage(): void
{
if ($this->app->runningInConsole()) {
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
}
}
}

0 comments on commit 92e14f2

Please sign in to comment.