From 099eab3f2749e67cb158d912f02d7c76ff317fdf Mon Sep 17 00:00:00 2001 From: Sergio Peris Date: Thu, 29 Feb 2024 09:40:49 +0100 Subject: [PATCH 1/3] Update CounterServiceProvider.php --- src/CounterServiceProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CounterServiceProvider.php b/src/CounterServiceProvider.php index 888c147..3b78660 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'); } } From 752b4592a3329431b60812ab121c79d98c1b4ae8 Mon Sep 17 00:00:00 2001 From: Sergio Peris Date: Thu, 29 Feb 2024 09:41:13 +0100 Subject: [PATCH 2/3] Update TestCase.php --- tests/TestCase.php | 9 --------- 1 file changed, 9 deletions(-) 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. * From 69777f85c326a9d2c47054e15ee80d2120383b83 Mon Sep 17 00:00:00 2001 From: sertxudev Date: Thu, 29 Feb 2024 08:41:50 +0000 Subject: [PATCH 3/3] Fix code styling --- src/CounterServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CounterServiceProvider.php b/src/CounterServiceProvider.php index 3b78660..7cd730a 100644 --- a/src/CounterServiceProvider.php +++ b/src/CounterServiceProvider.php @@ -19,7 +19,7 @@ public function boot(): void ], 'counters-config'); /** Load migrations */ - $this->loadMigrationsFrom(dirname(__DIR__) . '/database/migrations'); + $this->loadMigrationsFrom(dirname(__DIR__).'/database/migrations'); } }