Laravel Eloquent

Eloquent and query-layer engineering rules for Laravel — eliminating N+1, choosing a pagination strategy, short atomic transactions, casts and scopes on the model, where raw SQL is allowed, and how migrations declare the schema those queries depend on. Use when writing or reviewing Eloquent models, migrations, query classes, repositories, exports or reporting queries, or when a Laravel endpoint is slow, leaking memory, or returning wrongly-typed columns.

Foysal50x Updated

File contents

Foysal50x/skills/tree/main/skills/laravel-eloquent commit 6bf87b75b2

Frequently asked questions

npx skillmds@latest add foysal50x/laravel-eloquent