Skip to content

Commit 9330eb7

Browse files
authored
Use Artisan Facade to call native:migrate (#408)
1 parent 05d8f43 commit 9330eb7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/NativeServiceProvider.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
namespace Native\Laravel;
44

5-
use Illuminate\Console\Application as Artisan;
5+
use Illuminate\Console\Application;
66
use Illuminate\Support\Arr;
77
use Illuminate\Support\Facades\DB;
8+
use Illuminate\Support\Facades\Artisan;
89
use Native\Laravel\Commands\FreshCommand;
910
use Native\Laravel\Commands\LoadPHPConfigurationCommand;
1011
use Native\Laravel\Commands\LoadStartupConfigurationCommand;
@@ -52,8 +53,8 @@ public function packageRegistered()
5253
);
5354

5455
if (config('nativephp-internal.running')) {
55-
Artisan::starting(function ($artisan) {
56-
$artisan->resolveCommands([
56+
Application::starting(function ($app) {
57+
$app->resolveCommands([
5758
LoadStartupConfigurationCommand::class,
5859
LoadPHPConfigurationCommand::class,
5960
]);

0 commit comments

Comments
 (0)