laravel-12-best-practices
CommunityLaravel 12.x best practices, confidently.
Authormbuyco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Laravel 12.x project maintenance and quality can drift without standardized practices. This Skill provides a consolidated guide covering architecture, Eloquent usage, testing, security, and starter-kit considerations to help teams ship consistent, robust Laravel apps.
Core Features & Use Cases
- Architecture & Coding Standards: Align project structure, strict typing, and domain-oriented organization.
- Quality & Testing: Standardize linting with Pint, static analysis with PHPStan, and refactoring with Rector; adopt Pest or PHPUnit testing conventions.
- Eloquent & Data Access: Follow UUIDv7 patterns, consistent resource transformations, and query strictness to prevent N+1 issues.
- Starter Kits & Performance: Guidance on official Laravel starter kits, Inertia integration, and performance-conscious defaults.
Quick Start
Start a new Laravel 12.x project with strict types, install Pint, PHPStan, and Rector, adopt the recommended directory layout, and implement FormRequest validation and policy-based authorization.
Dependency Matrix
Required Modules
None requiredComponents
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: laravel-12-best-practices Download link: https://github.com/mbuyco/agent-skills/archive/main.zip#laravel-12-best-practices Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.