Fix loading commands of laravel/passport

This commit is contained in:
Pig Fang 2019-05-01 17:08:55 +08:00
parent 2b575d7a8f
commit 22d49f972d

View File

@ -2,6 +2,10 @@
use Artisan;
\Illuminate\Console\Application::starting(function ($artisan) {
$artisan->resolveCommands([\Laravel\Passport\Console\KeysCommand::class]);
});
Artisan::call('jwt:secret', ['--no-interaction' => true]);
Artisan::call('migrate', ['--force' => true]);
Artisan::call('passport:keys', ['--no-interaction' => true]);