laravel-architecture

Structure Laravel applications with service classes, repositories, and dependency injection.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill laravel-architecture-jorge-ivan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-architecture
Source: https://github.com/Jorge-Ivan/uam-hogar-nazareth-web/tree/main/.claude/skills/laravel-architecture
Command: npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill laravel-architecture-jorge-ivan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust framework for organizing Laravel applications, ensuring clean code, maintainability, and scalability by adhering to best practices like service layers, repositories, and dependency injection.

Core Features & Use Cases

  • Project Structuring: Defines clear directory layouts for controllers, services, repositories, and more.
  • Dependency Injection: Promotes using constructor injection over facades for better testability.
  • Code Organization: Encourages splitting logic into single-purpose actions and services.
  • Use Case: When starting a new Laravel project or refactoring an existing one, use this Skill to establish a clean, scalable architecture that makes future development and maintenance significantly easier.

Quick Start

Use the laravel-architecture skill to generate a new service class for user management.

Frequently Asked Questions about laravel-architecture

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

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

Structuring Laravel applications for maintainability involves using design patterns like service classes, repositories, and dependency injection to enforce thin controllers and clear separation of concerns.

What is the best way to organize complex Laravel project logic?

The best way to organize complex Laravel project logic is splitting it into single-purpose actions and services, promoting testability and ensuring long-term maintainability across the codebase.

How do I use dependency injection in Laravel instead of facades?

Using dependency injection in Laravel involves constructor injection rather than facades. This approach promotes better testability and clearer code organization within your service and repository layers.

When should I use a repository pattern in my Laravel codebase?

You should use the repository pattern in your Laravel codebase when refactoring existing projects or starting new ones to establish a clean, scalable architecture that facilitates code organization and testability.

Does this Laravel architecture approach require specific directory layouts?

This Laravel architecture approach defines clear directory layouts for controllers, services, and repositories, ensuring clean code and scalability without requiring external dependencies to enforce the structure.