laravel-architecture

Guide Laravel application architecture with patterns, structure, and decision trees.

Updated Sep 25, 2025
One-click install
npx skills add https://github.com/angelgarciasolorzano/social-hub --skill laravel-architecture-angelgarciasolorzano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-architecture
Source: https://github.com/angelgarciasolorzano/social-hub/tree/main/.agents/skills/laravel-architecture
Command: npx skills add https://github.com/angelgarciasolorzano/social-hub --skill laravel-architecture-angelgarciasolorzano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the complexity of implementing high-level architecture in Laravel applications, offering clear guidelines, patterns, and best practices.

Core Features & Use Cases

  • Architecture Decisions: Provides foundational principles, patterns, and project structure for making informed architectural decisions.
  • Pattern Selection: Offers guidance on when and how to use various architectural patterns like Actions, DTOs, State Machines, etc.
  • Project Structure: Defines a best-practice directory structure for organizing Laravel applications.
  • Quick Decision Tree: Assists in making quick, informed decisions regarding domain logic, data transfer, validation, etc.

Quick Start

Use the Laravel Architecture Skill to understand the best practices for organizing your Laravel project's directory structure and implementing core patterns.

Frequently Asked Questions about laravel-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What's the best way to organize a Laravel application's directory structure?

The best way to organize a Laravel application is using a best-practice directory structure that separates concerns. This approach defines clear boundaries for domain logic, data transfer, and validation to maintain a scalable codebase.

When should I use specific architectural patterns like Actions and DTOs in Laravel?

Use architectural patterns like Actions and DTOs in Laravel when you need strict separation of concerns and type safety. A quick decision tree helps determine exactly when to apply these patterns for domain logic and data transfer.

How do I implement robust Laravel architecture for a scalable codebase?

Implement robust Laravel architecture by applying established patterns, foundational principles, and type safety. This ensures code composability and maintainability, providing clear guidelines for making informed architectural decisions.

Does this Laravel architecture guidance support state machines for domain logic?

Yes, this Laravel architecture guidance supports state machines. It offers pattern selection guidance detailing when and how to implement state machines alongside Actions and DTOs for managing complex domain logic.

What are the limitations of relying on default Laravel code organization for large projects?

Relying on default Laravel code organization for large projects limits maintainability and scalability. Without established architectural patterns and strict separation of concerns, complex codebases become difficult to manage and scale effectively.