laravel-patterns

Provide structured Laravel architecture patterns for scalable application development.

3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/idiaz01/enterprise-superpowers --skill laravel-patterns-idiaz01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-patterns
Source: https://github.com/idiaz01/enterprise-superpowers/tree/main/content/skills/laravel-patterns
Command: npx skills add https://github.com/idiaz01/enterprise-superpowers --skill laravel-patterns-idiaz01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a coherent, production-ready set of Laravel architecture patterns to guide developers in building scalable and maintainable Laravel applications.

Core Features & Use Cases

  • Clear Controllers -> Services -> Actions architecture to separate orchestration from business logic.
  • Eloquent ORM patterns with repositories, DTOs, and domain services to manage data and rules.
  • API resources, routing strategies, queues, events, and caching to support robust, scalable APIs.
  • Real-world layout guidance for organizing app structure, tests, and configuration for production.

Quick Start

Create a scalable Laravel project structure following the described architecture patterns.

Frequently Asked Questions about laravel-patterns

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

FAQPage Schema
What's the best way to structure a large Laravel application for maintainability?

To structure large Laravel applications, implement a Controllers, Services, and Actions pattern that separates orchestration from business logic. This architecture ensures clear separation of concerns and provides a production-ready, maintainable layout as your project scales.

How do I separate business logic from controllers in Laravel?

You separate business logic from Laravel controllers by moving domain rules and data management into service layers and action classes. This pattern keeps controllers focused on orchestration while services handle the core business logic independently.

When do I need Eloquent repository patterns and DTOs in Laravel?

You need Eloquent repository patterns and DTOs in Laravel when managing complex data and domain rules in mid-to-large projects. This architecture isolates query logic and standardizes data transfer, keeping your production-ready structure clean and reusable.

How do I build scalable Laravel APIs with queues, events, and caching?

Build scalable Laravel APIs by implementing queues for deferred tasks, events for decoupled actions, and caching for performance. Combining these architecture patterns with API resources and routing strategies supports robust, production-ready API endpoints.

Does this Laravel architecture pattern approach work for mid-sized projects?

Yes, these Laravel architecture patterns apply specifically to mid-to-large projects. They provide production-ready structure guidance, applying scalable routing, service layers, and Eloquent patterns to ensure clear separation of concerns for growing applications.