Tweak console commands
This commit is contained in:
parent
72780a6217
commit
090c3b661b
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user