laravel-patterns

Organize Laravel architecture with controllers, services, actions, and routing.

4|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/arbisoft/ai-skillforge --skill laravel-patterns-arbisoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-patterns
Source: https://github.com/arbisoft/ai-skillforge/tree/main/Claude/skills/laravel-patterns
Command: npx skills add https://github.com/arbisoft/ai-skillforge --skill laravel-patterns-arbisoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel projects often suffer from tangled controllers, scattered domain logic, and inconsistent patterns across teams. This Skill provides a structured blueprint for scalable Laravel architectures, routing, services, Eloquent models, and API resources to promote maintainable codebases.

Core Features & Use Cases

  • Structured layering: Controllers -> Services/Actions -> Models to separate concerns.
  • Routing, Policies, and Resources: Clear routes, authorization, and API responses.
  • Queues, Events, Caching: Patterns for background processing and performance.

Quick Start

Set up a conventional Laravel layout with Controllers, Services, and Routes to establish clear boundaries.

Frequently Asked Questions about laravel-patterns

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

FAQPage Schema
How do I structure a Laravel application for scalability and maintainability?

Structure Laravel applications by separating concerns into Controllers, Services or Actions, and Eloquent Models. This layering prevents tangled controllers and scattered domain logic, establishing clear boundaries for maintainable production codebases.

What is the best way to organize domain logic in Laravel without fat controllers?

Organize domain logic by moving it out of controllers into dedicated Service or Action classes. This keeps controllers focused on HTTP request handling while encapsulating business logic in a structured, testable layer.

Can I use domain-driven design patterns in my Laravel project?

Yes, you can apply domain-driven design in Laravel by defining clear project layouts with dedicated Services, Actions, and Policies. This separates your domain logic from framework routing and data access layers.

How do I set up routing, policies, and API resources in Laravel?

Set up routing, policies, and API resources by defining clear routes, authorization rules in policies, and consistent API response formatting. This ensures disciplined routing and structured API outputs across your application.

What patterns should I use for Laravel queues, events, and caching?

Use structured patterns for Laravel queues, events, and caching to handle background processing and improve performance. These patterns ensure efficient data access and scalable background task execution in production environments.