Laravel Idioms

Use for any work in a Laravel codebase, whether reviewing, planning, building, refactoring, debugging, speeding up or testing PHP code in a project with an artisan file or laravel/framework in composer.json, even when the user never says "Laravel". Load it before planning a change or answering a question about the code, not only before editing. Also use it to audit a Laravel codebase, judge its health, find code smells or write a refactor report. Concrete rules for Laravel 11-13 on controllers, Form Requests, policies, collections, Eloquent and N+1, migrations, API auth and errors, webhooks, security, uploads, races, outbound HTTP, events and mail, queues, scheduler, Artisan commands, caching, Blade, Livewire, Inertia, Filament 5, error reporting and logging, dates and money, Pest and PHPUnit tests, plus a mandatory "Before you finish" checklist. Not for PHP projects that aren't Laravel. Complements Laravel Boost's laravel-best-practices skill, so load both when both are installed.

alfhen Updated

File contents

alfhen/laravel-idioms commit a8dfdecbce

Frequently asked questions

npx get-skill add alfhen/laravel-idioms