From 90533a45571ddcc888e3e094f3c06d1efd2eb069 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 4 Dec 2024 17:33:54 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/Concerns/InteractsWithMigrations.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } /**