laravel-patterns

Guide Laravel developers in implementing standardized controller, service, model, and routing patterns.

2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill laravel-patterns-multiplex-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-patterns
Source: https://github.com/multiplex-ai/muggle-ai-teams/tree/main/skills/laravel-patterns
Command: npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill laravel-patterns-multiplex-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel architecture patterns provide a battle-tested blueprint for building scalable, maintainable applications by standardizing how controllers, services, models, and routing interact across projects.

Core Features & Use Cases

  • Standard project structure with clear separation of concerns (HTTP layer, services, domain models).
  • Guidance on routing, binding, Eloquent usage, queues, caching, events, and API resources to produce production-ready code.
  • Use case: design a maintainable Laravel API with proper layers, validation, and testability across multiple services.

Quick Start

Install a Laravel project scaffold and begin applying the prescribed patterns to structure controllers, services, models, and resources.

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 scalable Laravel API with proper separation of concerns?

A scalable Laravel API uses a standardized project structure that separates the HTTP layer, services, and domain models. This ensures clear separation of concerns, making controllers, routing, and business logic maintainable across multiple services.

How do I implement a service layer in Laravel for maintainable applications?

Implement a Laravel service layer by moving business logic out of controllers into dedicated service classes. This pattern enforces production-grade structure, standardizes Eloquent usage, and keeps controllers focused on HTTP request handling.

When do I need Laravel architecture patterns for my web application?

You need Laravel architecture patterns when building scalable, maintainable web applications or APIs that require typed models, global scopes, form requests, and standardized conventions across queues, caching, events, and API resources.

Does this approach work with Laravel Eloquent models and API resources?

Yes, the approach provides explicit conventions for Eloquent usage, typed models, and API resources. It standardizes how models interact with services and covers caching, events, and queues to produce production-ready code.

How do I organize Laravel controllers, models, and routing for production-grade code?

Organize Laravel controllers, models, and routing by applying standardized patterns that enforce separation of concerns. Use form requests for validation and structure the HTTP layer distinctly from domain models and service layers.

What are the limitations of standard Laravel scaffolding for scalable apps?

Standard Laravel scaffolding lacks explicit separation of concerns and standardized service layers. Without prescribed patterns for queues, caching, and typed models, maintaining scalable applications across multiple services becomes difficult.