From 090c3b661ba1c7095739b94ca487fd02e7afc253 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Tue, 7 May 2019 18:47:40 +0800 Subject: [PATCH] Tweak console commands --- app/Console/Kernel.php | 13 +------------ app/Http/Controllers/SetupController.php | 3 --- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 200fd3bc..35eca8ca 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -13,6 +13,7 @@ class Kernel extends ConsoleKernel * @var array */ protected $commands = [ + \Laravel\Passport\Console\KeysCommand::class, Commands\KeyRandomCommand::class, Commands\SaltRandomCommand::class, Commands\MigratePlayersTable::class, @@ -20,16 +21,4 @@ class Kernel extends ConsoleKernel Commands\ExecuteInstallation::class, Commands\RegressLikesField::class, ]; - - /** - * Define the application's command schedule. - * - * @param \Illuminate\Console\Scheduling\Schedule $schedule - * @return void - */ - protected function schedule(Schedule $schedule) - { - $schedule->command('inspire') - ->hourly(); - } } diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index 6fe4357b..5740aca5 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -137,9 +137,6 @@ class SetupController extends Controller 'site_name' => 'required', ]); - \Illuminate\Console\Application::starting(function ($artisan) { - $artisan->resolveCommands([\Laravel\Passport\Console\KeysCommand::class]); - }); if ($request->has('generate_random')) { Artisan::call('key:random'); Artisan::call('salt:random');