A reusable Blade component that gets rendered 12 times on a page should not inject its <script> tag 12 times. Here is the directive that fixes it.
Articles
Facades look like static classes, which offends people who learned that static is untestable. Here is what is actually happening underneath.
The official Chrome DevTools panel for Inertia.js no longer requires an unpacked GitHub install, and it now records props, routes, and client-side visits.
Trial expirations, subscription renewals, and rate limit windows all depend on "now." Here is how to control it in tests instead of fighting it.
Render invoices as real HTML and CSS, then convert to PDF with headless Chrome instead of fighting a limited PDF-specific templating engine.
A community package wraps the Laravel AI SDK with reusable task classes, three execution modes, cost tracking, and a built-in dashboard.
Looping over a collection to count or sum related rows is a classic N+1. Eloquent has a single-query answer for every common case.
Stop repeating the same ->where() clause on every query. Global scopes bake query rules directly into the model.
A step-by-step guide to a debounced, keyboard-navigable autocomplete field backed by Eloquent, no JavaScript framework required.
Mago hit its 1.0.0 stable release after more than a thousand commits and dozens of betas, and early benchmarks against Laravel projects are striking.
When a dataset is too large to hold in memory as a Collection, LazyCollection processes it one item at a time using generators.
You do not need a machine learning service to recommend related content. A weighted scoring query in Eloquent gets you most of the way there.