0015-laravel-best-practices

Community

Harden Laravel code with proven best practices.

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the risk of performance regressions, security vulnerabilities, inconsistent patterns, and brittle behavior when writing or refactoring Laravel backend code.

Core Features & Use Cases

It provides a prioritized checklist of Laravel engineering practices across database performance, query construction, caching, validation, security, routing/controllers, architecture patterns, queues/jobs, HTTP client usage, error handling, scheduling, collections, Blade/view guidance, and testing strategies. It is intended for tasks like preventing N+1 queries and unsafe lazy loading, improving query efficiency with eager-loading discipline and advanced query patterns, enforcing mass-assignment protection and authorization, using Form Requests and validated() correctly, applying correct caching and concurrency primitives, and structuring controllers/actions to keep code maintainable. It also supports production readiness by covering pitfalls like retry/timeout mismatches in jobs, safe scheduling behavior in multi-server environments, and correct mail/event/notification dispatch timing around transactions.

Quick Start

Apply the 0015-laravel-best-practices skill to your Laravel change by addressing the relevant rule sections for controllers, models/queries, validation, security, performance, and queue/HTTP concerns.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0015-laravel-best-practices
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0015-laravel-best-practices

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.