Skip to content

Commit be74c0a

Browse files
authored
Merge pull request #13 from RonasIT/add-laravel-telescope-installation
fix: use Artisan facade
2 parents 34d2721 + 751aafb commit be74c0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Commands/InitCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Illuminate\Support\Carbon;
99
use Illuminate\Support\Str;
1010
use RonasIT\ProjectInitializator\Enums\RoleEnum;
11+
use Illuminate\Support\Facades\Artisan;
1112

1213
class InitCommand extends Command implements Isolatable
1314
{
@@ -133,8 +134,8 @@ public function handle(): void
133134
shell_exec("{$composerCommand} --ansi");
134135
}
135136

136-
$this->call('telescope:install');
137-
$this->call('migrate');
137+
Artisan::call('telescope:install');
138+
Artisan::call('migrate');
138139
}
139140

140141
protected function createAdminUser(string $kebabName): void

0 commit comments

Comments
 (0)