Laravel Eloquent Serialization: Hidden, Appends, Dates
The easiest Laravel API is one line: return User::all();. Eloquent turns the models into JSON for you. That...
Archive
Every tutorial, guide and deep dive, newest first.
156 articles
The easiest Laravel API is one line: return User::all();. Eloquent turns the models into JSON for you. That...
A critical vulnerability in Laravel's built-in token API guard lets an unauthenticated visitor log in as an existing...
Here is a bug that passes every test until a user without a profile picture shows up. You...
Sooner or later every JavaScript developer copies an object, changes the copy, and finds the original changed too....
On 21 October 2026 the PHP project released security updates for every supported branch, and the front page...
Here is a small surprise in Laravel validation. The integer rule passes the string "10". For a form...
Some Laravel features are famous, and some sit in the docs for years while people write the same...
You create a model, and one of its columns is calculated by the database: a full name built...
Most Laravel apps talk to one database and never think about connections. Then a reporting database shows up,...
Every Laravel model quietly fills in created_at and updated_at, and most of the time that is exactly what...
When a Laravel page or job feels slow, the database is the first suspect, and usually the right...
Create a new Eloquent model, ask for $flight->delayed, and you get null. Not false, even if your database...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.