laravel-architecture

Guide Laravel application architecture with DTOs, actions, and directory structure.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-architecture-sivanwol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-architecture
Source: https://github.com/Sivanwol/sabo-platfom/tree/main/.ai/skills/laravel-architecture
Command: npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-architecture-sivanwol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Architectural guidance for Laravel applications, standardizing decisions, patterns, and project structure to improve team alignment and maintainability.

Core Features & Use Cases

  • Core Principles: Declarative code, strict separation of concerns, type safety
  • Patterns & Structure: Actions, DTOs, builders, and module organization
  • Governance & References: Directory layout guidance, decision trees, and reference materials

Quick Start

Start by reading the core principles and structure, then choose a suitable architecture pattern for your Laravel app.

Frequently Asked Questions about laravel-architecture

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

FAQPage Schema
How do I structure a Laravel application using actions and DTOs?

To structure a Laravel application using actions and DTOs, enforce strict separation of concerns and DTO-first data transfer. This pattern delegates business logic to dedicated action classes while using DTOs to standardize data flow across services, improving maintainability and team alignment.

What is the best way to organize directories in a Laravel project for maintainability?

The best way to organize directories in a Laravel project is by adopting a modular structure guided by clear directory layout rules. This approach standardizes architectural decisions, ensuring controllers, actions, DTOs, and services are predictably placed to improve team alignment and maintainability.

When should I use custom query builders instead of standard Eloquent models?

You should use custom query builders instead of standard Eloquent models when you need strict type safety and declarative code for complex database interactions. This architectural pattern encapsulates query logic, keeping controllers and services clean and maintainable.

Can I refactor an existing Laravel application to use DTO-first data transfer?

Yes, you can refactor an existing Laravel application to use DTO-first data transfer. This architectural guidance supports refactoring efforts by enforcing strict typing and standardizing data flow across controllers, actions, and services to improve overall project maintainability.

Does this Laravel architecture guidance enforce strict typing across services?

Yes, this Laravel architecture guidance enforces strict typing across services. It mandates type safety and declarative code as core principles, ensuring strict separation of concerns when transferring data via DTOs or executing business logic through actions.