Laravel Telescope

Laravel Telescope: The command “telescope:prune” does not exist.

Since upgrading Laravel to the newest versions, telescope:prune does not always work anymore and gives this error:

Symfony\Component\Console\Exception\CommandNotFoundException
 The command "telescope:prune" does not exist.

Telescope is installed though.

Hopefully, it will be solved soon. It especially doesn’t seem to work when adding the —hours flag, for example telescope:prune –hours=96. For me, both didn’t work.

So far, the way to circumvent this is to create your own small Command script that calls:

\DB::table('telescope_entries')->where('created_at', '<', now()->subHours(96))->delete()

Not so clean and nice of course, but it does the trick for now. Use at your own risk.

Found any better solution, let us know.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top