laravel-patterns

Community

Laravel best practices for clean code.

Authoromanjaya
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides comprehensive guidance for building clean, maintainable Laravel 12 applications by applying modern PHP and Laravel conventions such as a service layer, thin controllers, form requests, DTOs, Enums, and robust model patterns. It helps teams reduce complexity and increase testability.

Core Features & Use Cases

  • Service Layer Pattern: Move business logic out of controllers into dedicated services.
  • Thin Controllers: Controllers handle HTTP concerns and delegate to services.
  • Form Requests & Validation: Centralized validation rules and custom messages.
  • Eloquent & Patterns: Repositories, DTOs, Enums, and clean model designs.
  • Use Case: When building an HR system, implement services for employee management, while keeping controllers slim and easily testable.

Quick Start

Create a new EmployeeController with a thin controller that delegates to EmployeeService to handle creation.

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: laravel-patterns
Download link: https://github.com/omanjaya/attendancedev/archive/main.zip#laravel-patterns

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