
Laravel Slow Query Detection: Catch Them Before Users Do
Reading Time: 3 minutesSeries: Every Laravel Project Should Have These Building Blocks Part: 29 of 35 Level: Intermediate Prerequisites: App Service
Tag archive

Reading Time: 3 minutesSeries: Every Laravel Project Should Have These Building Blocks Part: 29 of 35 Level: Intermediate Prerequisites: App Service

Reading Time: 4 minutesSeries: Every Laravel Project Should Have These Building Blocks Part: 13 of 35 Level: Intermediate Prerequisites: Model Trait

Reading Time: 5 minutesSeries: Every Laravel Project Should Have These Building Blocks Part: 11 of 35 | Level: Intermediate | Prerequisites: Folder

Reading Time: 4 minutesSeries: Every Laravel Project Should Have These Building Blocks Part: 12 of 35 | Level: Intermediate | Prerequisites: Model T

Reading Time: 6 minutesSeries: Every Laravel Project Should Have These Building Blocks Part 35 of 35 | Level: Beginner–Intermediate Prerequisites: N

Laravel JSON:API resources, timacdonald/json-api and laravel-json-api built against the same models on 13.38, with query counts and one question that decides.

"Duplicate this" buttons look easy: copy the row, save it, done. Then the first copy fails with a...

The easiest Laravel API is one line: return User::all();. Eloquent turns the models into JSON for...

Some Laravel features are famous, and some sit in the docs for years while people write the same...
![Laravel #[Refreshes]: Refresh Attributes After Writes](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto/https%3A%2F%2Fdev-talk.com%2Fstorage%2Fimages%2Fposts%2F1792464255_laravel-attribute-refresh-tutorial.webp)
You create a model, and one of its columns is calculated by the database: a full name built from two...
![Laravel 13 #[Connection] Attribute: Per-Model Database](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto/https%3A%2F%2Fdev-talk.com%2Fstorage%2Fimages%2Fposts%2F1792426306_laravel-13-per-model-database-connections.webp)
Most Laravel apps talk to one database and never think about connections. Then a reporting database...

Create a new Eloquent model, ask for $flight->delayed, and you get null. Not false, even if your...