Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
Fix namespace of scheduled command in README (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jochensengier authored Jul 29, 2020
1 parent de18377 commit c92590e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ return [

```

Optionally, you can schedule the `Spatie\Model\CleanUpModelsCommand` to run at a frequency of which you want to clean up models. Here's an example where all models will be cleaned up every day at midnight.
Optionally, you can schedule the `Spatie\ModelCleanup\Commands\CleanUpModelsCommand` to run at a frequency of which you want to clean up models. Here's an example where all models will be cleaned up every day at midnight.

```php
// in app/Console/Kernel.php

protected function schedule(Schedule $schedule)
{
$schedule->command(\Spatie\Model\CleanUpModelsCommand::class)->daily();
$schedule->command(\Spatie\ModelCleanup\Commands\CleanUpModelsCommand::class)->daily();
}
```

Expand Down

0 comments on commit c92590e

Please sign in to comment.