laravel-architecture

Guide Laravel architecture decisions and project structure for maintainable applications.

1|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/nextplus896/durra-alaseel --skill laravel-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-architecture
Source: https://github.com/nextplus896/durra-alaseel/tree/main/.github/skills/claude-laravel/laravel-architecture
Command: npx skills add https://github.com/nextplus896/durra-alaseel --skill laravel-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides Laravel architecture decisions and project structure for maintainable, scalable Laravel applications.

Core Features & Use Cases

  • Architecture decision guidance for choosing patterns (Actions, DTOs, State Machines, Services, etc)
  • Directory structure conventions across the codebase
  • Pattern usage guidance for API vs Web layers, testing, and architecture enforcement
  • Use Case: When users ask about architecture decisions, project structure, pattern selection, or best practices.

Quick Start

Ask the assistant for a high-level overview of Laravel architecture decisions and best practices.

Frequently Asked Questions about laravel-architecture

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

FAQPage Schema
What are the best Laravel architecture patterns for a maintainable application?

The best Laravel architecture patterns for maintainable applications include Actions, DTOs, Services, Custom Query Builders, and State Machines. These patterns separate business logic, enforce strict typing, and ensure transactional state changes across your codebase.

How do I structure a Laravel project for scalable API and Web layers?

To structure a scalable Laravel project, apply directory conventions that separate API and Web layers. Use DTOs for data transfer and Actions for transactional business logic, keeping controller bloat minimal and enforcing strict boundaries.

When should I use DTOs and Actions in Laravel development?

Use DTOs and Actions in Laravel development when you need strict data typing and transactional business logic execution. DTOs standardize data transfer, while Actions encapsulate complex operations, ensuring your application remains maintainable and scalable.

How do I enforce strict typing and architecture rules in a Laravel codebase?

Enforce strict typing and Laravel architecture rules by applying pattern usage guidance for testing and architecture enforcement. This involves using DTOs consistently and implementing strict boundaries between Services and Actions.

Does this Laravel architecture guidance support custom State Machines and Query Builders?

Yes, this Laravel architecture guidance supports custom State Machines and Custom Query Builders. It provides decision guidance for selecting these patterns to manage complex entity states and encapsulate database query logic effectively.

What is the best way to organize Laravel folder conventions for large projects?

The best way to organize Laravel folder conventions for large projects is by grouping files by architectural pattern rather than type. Place Actions, DTOs, and Services in dedicated directories to enforce structure and maintainability.