laravel-patterns

Define and enforce Laravel architectural patterns for controllers, services, models, and queues.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/TruCol270/salty-pickle --skill laravel-patterns-trucol270
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-patterns
Source: https://github.com/TruCol270/salty-pickle/tree/main/.claude-skills/laravel-patterns
Command: npx skills add https://github.com/TruCol270/salty-pickle --skill laravel-patterns-trucol270

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel projects often grow into tangled codebases as teams add features without consistent structure. This Skill defines production-grade architecture patterns to enforce clear boundaries and focus on maintainability.

Core Features & Use Cases

  • Clear layer boundaries: HTTP controllers -> services -> domain logic ensuring separation of concerns.
  • Eloquent ORM patterns: repositories, data mappers, and clear model responsibilities for scalable data access.
  • API resources, queues, events, and caching: patterns for resilient, maintainable API development.

Quick Start

Apply the recommended Laravel structure in your project by establishing clear layer boundaries (HTTP controllers, services, models) and using route model binding.

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 large Laravel application to keep it maintainable?

To keep a large Laravel application maintainable, structure it with clear layer boundaries: route HTTP requests to controllers, delegate to services, and isolate domain logic. This prevents tangled codebases as features scale.

What are the best Eloquent ORM patterns for scalable data access?

For scalable Eloquent ORM data access, apply repository and data mapper patterns to define clear model responsibilities. This isolates query logic and keeps database interactions maintainable across typical Laravel projects.

How do I organize controllers, queues, and events for resilient API development in Laravel?

Organize resilient Laravel APIs by applying architectural patterns for API resources, queues, events, and caching. Document structures across app/, config/, routes/, and resources to maintain clear boundaries and focus on maintainability.

Does this Laravel architecture approach require specific dependencies or bindings?

This Laravel architecture approach requires no external dependencies, but it does require documented structures in app/, config/, routes/, and resources, along with established patterns for service bindings and caching to enforce clear boundaries.

When should I implement a service layer in my Laravel project?

Implement a service layer in your Laravel project when you need to separate HTTP request handling in controllers from domain logic. This layer ensures clear boundaries and improves overall maintainability as teams add features.