Skip to content

Commit 92e14f2

Browse files
committed
Add load migrations for app run in console
1 parent d6559d6 commit 92e14f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/SubscriptionServiceProvider.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ public function configurePackage(Package $package): void
2121
->askToStarRepoOnGitHub('laravelcm/laravel-subscriptions');
2222
});
2323
}
24+
25+
public function bootingPackage(): void
26+
{
27+
if ($this->app->runningInConsole()) {
28+
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
29+
}
30+
}
2431
}

0 commit comments

Comments
 (0)