diff --git a/composer.json b/composer.json index ea67065..a092b58 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,8 @@ ] }, "require": { - "php": ">=7.3", - "laravie/api": "dev-master", + "php": "^7.3 || ^8.0", + "laravie/api": "^4.0", "nikic/fast-route": "^1.3", "orchestra/foundation": "^6.0" }, diff --git a/src/Application.php b/src/Application.php index 5d6962b..604abe4 100644 --- a/src/Application.php +++ b/src/Application.php @@ -9,8 +9,8 @@ use Illuminate\Support\ServiceProvider; use Illuminate\Support\Str; use Laravel\Lumen\Routing\Router; +use Laravie\Dhosa\HotSwap; use Orchestra\Contracts\Foundation\Application as ApplicationContract; -use Orchestra\Model\HS; use RuntimeException; class Application extends Container implements ApplicationContract @@ -355,7 +355,7 @@ public function flush() { parent::flush(); - HS::flush(); + HotSwap::flush(); $this->middleware = []; $this->currentRoute = []; diff --git a/src/Concerns/FoundationSupports.php b/src/Concerns/FoundationSupports.php index d243056..035500a 100644 --- a/src/Concerns/FoundationSupports.php +++ b/src/Concerns/FoundationSupports.php @@ -2,9 +2,9 @@ namespace Laravel\Lumen\Concerns; +use Laravie\Dhosa\HotSwap; use Orchestra\Foundation\Auth\User; use Orchestra\Foundation\Bootstrap\UserAccessPolicy; -use Orchestra\Model\HS; trait FoundationSupports { @@ -15,7 +15,7 @@ trait FoundationSupports */ public function withFoundation() { - HS::override('User', User::class); + HotSwap::override('User', User::class); $this->booted(static function ($app) { (new UserAccessPolicy())->bootstrap($app);