Skip to content

Commit

Permalink
Add documentation about pruning the older entries to reduce disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasgeniar committed Nov 9, 2018
1 parent a686978 commit 3b88505
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ protected function gate()
}
```

#### Cleaning up old 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.

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');
```

## License

Laravel Telescope is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

0 comments on commit 3b88505

Please sign in to comment.