laravel-patterns

Apply standardized Laravel architecture patterns for controllers, services, and Eloquent ORM.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/luongldptit/move-ticket --skill laravel-patterns-luongldptit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-patterns
Source: https://github.com/luongldptit/move-ticket/tree/main/.agent/skills/laravel-patterns
Command: npx skills add https://github.com/luongldptit/move-ticket --skill laravel-patterns-luongldptit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the common challenge of building inconsistent, hard-to-maintain Laravel applications by providing standardized, production-grade architecture patterns that reduce technical debt and accelerate development.

Core Features & Use Cases

  • Standardized App Structure: Clear layer separation between controllers, services, actions, and models to keep code organized and testable.
  • Eloquent ORM Best Practices: Typed models, custom casts, scopes, eager loading, and query objects for efficient, consistent database interactions.
  • Production-Ready Workflows: Pre-built patterns for routing, API resources, form requests, queues, events, caching, and migrations for scalable Laravel web apps and APIs.
  • Use Case: Use this Skill to architect a multi-tenant SaaS Laravel API with scoped route bindings, queued background jobs, and cached read-heavy endpoints.

Quick Start

Use the laravel-patterns skill to design the full architecture for a new Laravel e-commerce API with proper service layer separation and scoped access control.

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 maintainability and testability?

To structure a maintainable Laravel application, implement clear layer separation between controllers, services, actions, and models. This standardized architecture pattern ensures testable applications with distinct layer boundaries, reducing technical debt and accelerating development.

What are the best practices for optimizing Eloquent ORM queries in Laravel?

Eloquent ORM optimization in Laravel involves using typed models, custom casts, scopes, eager loading, and query objects. These Eloquent best practices ensure efficient, consistent database interactions and prevent performance bottlenecks in read-heavy endpoints.

How do I standardize API responses and routing in Laravel web apps?

Standardizing API responses and routing in Laravel web apps is achieved using pre-built production-ready patterns. These include implementing API resources, form requests, and scoped route bindings to ensure consistent API output and proper access control.

Can I use Laravel patterns to architect a multi-tenant SaaS API with queued background jobs?

Yes, you can use these Laravel patterns to architect a multi-tenant SaaS API. They provide pre-built configurations for queued background jobs, event handling, and caching, enabling scalable and reliable API architectures with scoped access control.

Does this Laravel architecture pattern support efficient database migrations and caching?

These Laravel architecture patterns support efficient database migrations and caching through production-ready workflows. They provide standardized configurations for scalable Laravel web apps, ensuring reliable background job processing and optimized database queries.