diff --git a/src/Concerns/InteractsWithMigrations.php b/src/Concerns/InteractsWithMigrations.php index ab6d4937..81c7d028 100644 --- a/src/Concerns/InteractsWithMigrations.php +++ b/src/Concerns/InteractsWithMigrations.php @@ -82,17 +82,13 @@ protected function loadMigrationsFrom(array|string $paths): void return; } - if (\is_null($this->app)) { - throw ApplicationNotAvailableException::make(__METHOD__); - } - /** @var array|string $paths */ $migrator = new MigrateProcessor($this, $this->resolvePackageMigrationsOptions($paths)); $migrator->up(); array_unshift($this->cachedTestMigratorProcessors, $migrator); - $this->resetApplicationArtisanCommands($this->app); + $this->resetApplicationArtisanCommands($app); } /**