Build a Lightweight Laravel Request Inspector | Mohamed Said       [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://www.msaied.com/public) - [Home](https://www.msaied.com/public)
- [Projects](https://www.msaied.com/public/projects)
- [Articles](https://www.msaied.com/public/articles)
- [Certificates](https://www.msaied.com/public/certificates)
- [About](https://www.msaied.com/public#about)

           [  Contact](https://www.msaied.com/public#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://www.msaied.com/public)
- [ProjectsCase studies](https://www.msaied.com/public/projects)
- [ArticlesEngineering notes](https://www.msaied.com/public/articles)
- [CertificatesCredentials](https://www.msaied.com/public/certificates)
- [AboutHow I work](https://www.msaied.com/public#about)
- [ContactGet in touch](https://www.msaied.com/public#contact)

  [Start a conversation](https://www.msaied.com/public#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

 1. [Home](https://www.msaied.com/public)
2. /
3. [Articles](https://www.msaied.com/public/articles)
4. /
5. Laravel Telescope Alternatives: Building a Lightweight Request Inspector with Middleware

 Laravel Telescope Alternatives: Building a Lightweight Request Inspector with Middleware
=========================================================================================

 Telescope is powerful but heavy for production. Learn how to build a focused, low-overhead request inspector using middleware, a custom storage driver, and a Filament-powered UI.

 ![](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp) [Mohamed Said](https://www.msaied.com/public#person) Published 16 Jun 2026 · Updated 16 Jun 2026 · 1 min read

ShareCopy linkCopied

 ![Laravel Telescope Alternatives: Building a Lightweight Request Inspector with Middleware](https://cdn.msaied.com/216/9b6d240010b80483f072902dafcd216c.png) 

  On this page +1. [Why Not Just Use Telescope?](#why-not-just-use-telescope)
2. [Designing the Inspector](#designing-the-inspector)
3. [The Middleware](#the-middleware)
4. [The RequestStore](#the-requeststore)
5. [Filament Resource (Read-Only)](#filament-resource-read-only)
6. [Registering the Middleware](#registering-the-middleware)
7. [Key Takeaways](#key-takeaways)

 Why Not Just Use Telescope?
---------------------------

Laravel Telescope is excellent during local development, but its default `DatabaseWatcher` writes every request, query, and exception to your database synchronously. In production, that overhead compounds quickly — especially under load. Most teams either disable Telescope entirely or run it on a separate process with sampling, which adds operational complexity.

A focused, purpose-built inspector can give you 80% of the value at 10% of the cost. Here's how to build one.

---

Designing the Inspector
-----------------------

The goal: capture HTTP request metadata (method, URI, status, duration, authenticated user, peak memory) and persist it asynchronously to a Redis sorted set, with a Filament table to browse recent entries.

Three moving parts:

1. **`InspectRequest` middleware** — measures and serialises the request.
2. **`RequestStore`** — a thin abstraction over Redis.
3. **A Filament resource** — reads from Redis and renders the table.

---

The Middleware
--------------

```php
