From 39db686528d46523a2535b72888f360a417ef520 Mon Sep 17 00:00:00 2001 From: Salvatore Scalzi Date: Sat, 28 Jan 2023 19:12:38 +0100 Subject: [PATCH] Fix method embrace in Kernel Class (#180) --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e5b86d2..cdc4b72 100644 --- a/README.md +++ b/README.md @@ -344,15 +344,16 @@ use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Spatie\WebhookClient\Models\WebhookCall; class Kernel extends ConsoleKernel - -protected function schedule(Schedule $schedule) { - $schedule->command('model:prune', [ - '--model' => [WebhookCall::class], - ])->daily(); - - // This will not work, as models in a package are not used by default - // $schedule->command('model:prune')->daily(); + protected function schedule(Schedule $schedule) + { + $schedule->command('model:prune', [ + '--model' => [WebhookCall::class], + ])->daily(); + + // This will not work, as models in a package are not used by default + // $schedule->command('model:prune')->daily(); + } } ```