Skip to content

Commit 227e5d6

Browse files
committed
don't load migrations from package, use published migrations
1 parent 0c15b40 commit 227e5d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SentEmailsServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public function boot(): void
1919
$this->loadViewsFrom(__DIR__.'/resources/views', 'sentemails');
2020
$this->loadRoutesFrom(__DIR__.'/routes/web.php');
2121

22+
if ($this->app->runningUnitTests()) {
23+
$this->loadMigrationsFrom(__DIR__.'/database/migrations');
24+
}
25+
2226
if ($this->app->runningInConsole()) {
2327

2428
$this->publishes([

0 commit comments

Comments
 (0)