laravel-architecture

High-level architecture decisions, patterns, and project structure. Use when user asks about architecture decisions, project structure, pattern selection, or mentions how to organize, which pattern to use, best practices, architecture.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel-architecture" with this command: npx skills add leeovery/claude-laravel/leeovery-claude-laravel-laravel-architecture

Laravel Architecture

High-level architectural guidance for Laravel applications.

Core Concepts

philosophy.md - Foundational principles:

  • Declarative code above all else
  • Strict separation of concerns
  • Type safety first
  • All core architectural principles

patterns.md - Pattern overview:

  • Actions for domain logic
  • DTOs for data transfer
  • State machines for complex state
  • Services for external integration
  • Workflows for multi-step processes
  • Value objects for domain values

decisions.md - Pattern selection:

  • When to use each pattern
  • Decision flowcharts
  • Architectural trade-offs
  • Common scenarios

structure.md - Directory structure:

  • Complete project organization
  • File placement rules
  • Namespace conventions
  • Web vs API distinction

examples.md - Reference implementations:

  • Complete working examples
  • End-to-end workflows
  • Real-world patterns

checklist.md - Implementation checklist:

  • Setup tasks
  • Feature development workflow
  • Production deployment steps

Core Principles

  1. Actions contain domain logic - Business logic lives in invokable action classes
  2. Never pass primitives - Always use DTOs for data transfer
  3. Thin HTTP layer - Controllers only handle HTTP concerns
  4. Custom query builders - Type-safe queries over scopes
  5. Strict typing - declare(strict_types=1) in every file

Quick Decision Tree

Need to...

  • Handle domain logic? → Action
  • Transfer data? → DTO
  • Validate user input? → Form Request
  • Simple state field? → Enum
  • Complex state transitions? → State Machine
  • External API? → Service with Saloon
  • Background processing? → Job (delegates to Action)

Read decision flowcharts in decisions.md for detailed guidance.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel-testing

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel-quality

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel-multi-tenancy

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel-actions

No summary provided by upstream source.

Repository SourceNeeds Review