tegos/laravel-telescope-flusher

telescope-flusher is a Laravel package that provides a simple Artisan command to completely flush all Telescope data from the database

v1.0.2 2025-08-20 10:35 UTC

This package is auto-updated.

Last update: 2025-08-20 10:41:39 UTC


README

Flush all Laravel Telescope data safely in local environments.

Latest Version on Packagist Total Downloads PHP Version Laravel Version Software License

Laravel Telescope Flusher is a simple package that provides laravel artisan command to completely flush all telescope data from your database. It ensures a clean slate for debugging and monitoring while preventing execution in production environments.

Efficiently Managing Telescope Entries with Laravel-Telescope-Flusher

Installation

You can install the package via Composer:

composer require tegos/laravel-telescope-flusher --dev

Usage

Once installed, you can run the following command to flush Telescope data:

php artisan telescope:flush

Behavior

  • ✅ Only runs in local environments (prevents accidental execution in production).
  • ✅ Checks if Telescope is installed before running.
  • ✅ Truncates all Telescope-related tables.
  • ✅ Optimizes the telescope_entries table (MySQL).

Testing

You can run tests using:

composer test

Contributing

Please see CONTRIBUTING for contribution guidelines.

Security

If you discover any security-related issues, please email tegosiv@gmail.com instead of using the issue tracker.

Credits

License

This package is open-source software licensed under the MIT License. See LICENSE for details.

Donate