Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing migrations load #2

Merged
merged 3 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/CounterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down
9 changes: 0 additions & 9 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down