Four free browser tools for the Laravel problems I hit every week
Four things go wrong in almost every Laravel codebase I touch, and none of them need a paid service to catch: An N+1 that only shows up when a page gets traffic. A schema nobody can picture, because it lives in 40 migration files. An upgrade where nobody knows what will break until composer resolves. A package added because a blog post mentioned it, with no look at its health. I built a small…
Laravel developers often encounter four common issues: N+1 queries, complex migration schemas, unexpected upgrades, and poorly maintained third-party packages. To address these problems, I developed four free, browser-based tools that require no account or backend.
The first tool detects N+1 queries and provides an explanation of the underlying issue, along with recommendations for improving the code. It also offers an SQL query explainer, which shows the SQL generated from an Eloquent line and highlights potential indexes that could improve performance.
The second tool generates an Entity-Relationship (ER) diagram from Laravel migration files, using Mermaid export for visual representation. It also flags potential problems such as missing foreign keys, inappropriate column types, and nullable columns that should be mandatory.
The third tool assists with Laravel upgrades by analyzing a composer.json file. It identifies issues like incompatible PHP versions, outdated framework versions, and pinned package versions that may hinder a smooth upgrade process. This tool provides a starting point for addressing upgrade challenges, rather than solving them entirely.
The fourth and final tool checks the health of third-party packages on Packagist. It displays the latest version, last release date, download count, and whether the package is marked as abandoned. This information is retrieved live from Packagist, ensuring the data is up-to-date.
These tools are not heuristics or reviews, but rather guiding resources to help developers identify potential problems in their Laravel projects. They operate entirely in the browser, ensuring that sensitive code and data remain on the user's machine. The tools are open-source, so developers can explore the codebase and contribute to improvements.
Rewritten by urgent.news; may contain errors — check the original. How we use AI.
Source: dev.to