Laravel Best Practices

Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.

laravel Updated

File contents

laravel/boost/tree/main/.ai/laravel/skill/laravel-best-practices commit 311ab84437

Frequently asked questions

npx skillmds@latest add laravel/laravel-best-practices