Skip to content

Commit

Permalink
Fix method embrace in Kernel Class (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
wit3 authored Jan 28, 2023
1 parent 31bfdfa commit 39db686
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
```

Expand Down

0 comments on commit 39db686

Please sign in to comment.