From 96e23e08c5de5748b7ea38573da13b3a1f3fc141 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 9 Nov 2018 08:19:41 -0600 Subject: [PATCH] pruning --- readme.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/readme.md b/readme.md index 04c7d8610..79ae0190c 100644 --- a/readme.md +++ b/readme.md @@ -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