Skip to content

Commit

Permalink
pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 9, 2018
1 parent 3b88505 commit 96e23e0
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,12 @@ protected function gate()
}
```

#### Cleaning up old entries
#### Pruning Entries

If your application throws a lot of exceptions, the `telescope_entries` table can get very large, very quickly. Telescope can prune older entries from its database to help reduce this size.
Without pruning, the `telescope_entries` table can accumulate records very quickly. To mitigate this, you should schedule the `telescope:prune` Artisan command to run daily:

Either run this `artisan` command as a one-time cleanup or add it to your `Console/Kernel.php` as a scheduled task.

```
php artisan telescope:prune
```

As a scheduled task:
```
$schedule->command('telescope:prune')->dailyAt(1, '07:30');
```php
$schedule->command('telescope:prune')->daily();
```

## License
Expand Down

0 comments on commit 96e23e0

Please sign in to comment.