laravel-patterns

Structure Laravel apps with controllers, services, models, queues, and events.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/yusufcmg/Agent_Memory_Systems --skill laravel-patterns-yusufcmg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-patterns
Source: https://github.com/yusufcmg/Agent_Memory_Systems/tree/main/.claude/skills/laravel-patterns
Command: npx skills add https://github.com/yusufcmg/Agent_Memory_Systems --skill laravel-patterns-yusufcmg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel architecture patterns, routing/controllers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.

Core Features & Use Cases

  • Provides a scalable project structure for Laravel apps with clear layer boundaries (Controllers, Services, Models).
  • Guides integration of Eloquent patterns, repositories, service layers, queues, and API resources for robust production apps.
  • Use cases include designing scalable APIs, background jobs, and efficient data access with caching.

Quick Start

Organize your Laravel app around clear layer boundaries (Controllers -> Services -> Models) and scaffold the standard folders to begin applying production-grade patterns.

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 scalable Laravel app with clear layer boundaries?

Structure a scalable Laravel app by organizing it around clear layer boundaries, separating Controllers, Services, and Models. This pattern provides production-grade architecture, explicit bindings, and typed models for maintainable web applications and APIs.

What is the best way to implement a service layer in Laravel for production apps?

Implement a Laravel service layer by guiding the integration of Eloquent patterns, repositories, and API resources. This approach ensures robust production apps by maintaining separation of concerns and explicit bindings across your project's architecture.

How do I set up event-driven flows and queues in Laravel for background jobs?

Set up Laravel event-driven flows and queues by scaffolding standard folders to manage background jobs. This pattern ensures clear separation of concerns and explicit bindings for efficient, maintainable processing of asynchronous tasks.

Does Laravel architecture need specific caching patterns for efficient data access?

Laravel architecture requires specific caching patterns for efficient data access. By integrating Eloquent patterns with caching strategies, you achieve robust production apps with optimized data retrieval and clear layer boundaries.

When should I use repositories versus standard Eloquent models in Laravel?

Use repositories in Laravel when you need robust production apps with strict separation of concerns and clear layer boundaries. Standard Eloquent models remain useful for typed data access, while repositories guide complex data integration.

Can I use these Laravel patterns for designing scalable APIs?

You can use these Laravel patterns for designing scalable APIs. They guide structuring controllers, services, models, and API resources, satisfying requirements for clear layer boundaries, event-driven flows, and explicit bindings.