mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-27 06:29:19 +08:00
Register command at setup
This commit is contained in:
parent
f297788806
commit
d519a4824a
@ -137,6 +137,9 @@ class SetupController extends Controller
|
|||||||
'site_name' => 'required',
|
'site_name' => 'required',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
\Illuminate\Console\Application::starting(function ($artisan) {
|
||||||
|
$artisan->resolveCommands([\Laravel\Passport\Console\KeysCommand::class]);
|
||||||
|
});
|
||||||
if ($request->has('generate_random')) {
|
if ($request->has('generate_random')) {
|
||||||
Artisan::call('key:random');
|
Artisan::call('key:random');
|
||||||
Artisan::call('salt:random');
|
Artisan::call('salt:random');
|
||||||
|
Loading…
Reference in New Issue
Block a user