From 0e6cdccceee8bed57b2b9059a070c93e7acfc7d3 Mon Sep 17 00:00:00 2001 From: Angelos Michalopoulos Date: Wed, 13 Nov 2024 14:34:49 +0200 Subject: [PATCH] Use Artisan Facade to call native:migrate --- src/NativeServiceProvider.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NativeServiceProvider.php b/src/NativeServiceProvider.php index 0831933..9f0fd71 100644 --- a/src/NativeServiceProvider.php +++ b/src/NativeServiceProvider.php @@ -2,9 +2,10 @@ namespace Native\Laravel; -use Illuminate\Console\Application as Artisan; +use Illuminate\Console\Application; use Illuminate\Support\Arr; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Artisan; use Native\Laravel\Commands\FreshCommand; use Native\Laravel\Commands\LoadPHPConfigurationCommand; use Native\Laravel\Commands\LoadStartupConfigurationCommand; @@ -52,8 +53,8 @@ public function packageRegistered() ); if (config('nativephp-internal.running')) { - Artisan::starting(function ($artisan) { - $artisan->resolveCommands([ + Application::starting(function ($app) { + $app->resolveCommands([ LoadStartupConfigurationCommand::class, LoadPHPConfigurationCommand::class, ]);