Laravel Time Machine: Find Where Your Laravel Request Is Spending Time
Have you ever looked at a slow Laravel request and wondered: “Where exactly is the time going?” Is it middleware? Routing? Controller logic? Database queries? An external API? I built Laravel Time Machine to make answering that question easier. What is Laravel Time Machine? Laravel Time Machine is a lightweight request lifecycle profiler for Laravel. Instead of adding microtime() calls throughout your code or trying to guess where the bottleneck is, it gives you a visual timeline of the request lifecycle. You can see: 🚀 Application boot time 🔐 Middleware execution 🛣️ Routing 🎯 Controller execution 🗄️ Database queries 📤 Response handling ⏱️ Request termination 💾 Memory usage 🐌 Slow requests and queries The project is open source and currently supports Laravel 8 through 13. Why I built it When debugging performance issues, developers often start adding temporary timing code: $start = microtime(true); // Some code... logger(microtime(true) - $start); It works, but it bec...