diff --git a/src/CounterServiceProvider.php b/src/CounterServiceProvider.php index 888c147..7cd730a 100644 --- a/src/CounterServiceProvider.php +++ b/src/CounterServiceProvider.php @@ -17,6 +17,9 @@ public function boot(): void $this->publishes([ dirname(__DIR__).'/config/counters.php' => $this->app->configPath('counters.php'), ], 'counters-config'); + + /** Load migrations */ + $this->loadMigrationsFrom(dirname(__DIR__).'/database/migrations'); } } diff --git a/tests/TestCase.php b/tests/TestCase.php index f932ce1..836922f 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -10,15 +10,6 @@ class TestCase extends Orchestra { use RefreshDatabase; - /** - * Define database migrations. - */ - protected function defineDatabaseMigrations(): void - { - $this->loadLaravelMigrations(); - $this->loadMigrationsFrom(dirname(__DIR__).'/database/migrations'); - } - /** * Get package providers. *