laravel-patterns

Provide Laravel best practices for routing, controllers, Eloquent ORM, and API development.

12|4|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TeiNam/kiro-with-harness --skill laravel-patterns-teinam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-patterns
Source: https://github.com/TeiNam/kiro-with-harness/tree/main/skills/laravel-patterns
Command: npx skills add https://github.com/TeiNam/kiro-with-harness --skill laravel-patterns-teinam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit addresses the complexities of building Laravel applications by providing structured patterns and best practices for controllers, models, and more, improving development efficiency and code maintainability.

Core Features & Use Cases

  • Structured Laravel Patterns: Offers guidance on building scalable and maintainable applications with Laravel.
  • Routing & Controllers: Provides strategies for efficient routing and controller design.
  • Eloquent ORM: Offers best practices for modeling relationships and managing database operations.
  • API Resources: Walks through the process of creating clean, maintainable APIs using Laravel resources.
  • Use Case: Developers seeking to enhance their Laravel development process by integrating established patterns into their projects.

Quick Start

Install the Laravel patterns skill to leverage established patterns in your new or existing Laravel project.

Frequently Asked Questions about laravel-patterns

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

FAQPage Schema
What are the best practices for structuring scalable Laravel controllers and routing?

Laravel controller best practices involve using structured patterns for routing and API resources to improve maintainability. This Skill provides guidelines for efficient controller design and scalable application architecture tailored for Laravel developers.

How do I manage Eloquent ORM relationships for complex database operations in Laravel?

Managing Eloquent ORM relationships requires following best practices for modeling data structures and database operations. This Skill offers guidelines for maintaining Eloquent ORM relationships to ensure scalable and maintainable Laravel applications.

What is the best way to create clean and maintainable APIs using Laravel resources?

The best way to create clean APIs using Laravel resources is by applying structured patterns that separate data transformation from controllers. This approach ensures maintainable API development by leveraging Laravel resources for consistent JSON responses.

Do I need a working knowledge of PHP to use these Laravel architecture patterns?

Yes, a working knowledge of the Laravel framework and PHP is required to apply these architecture patterns. This Skill is tailored for Laravel developers seeking to integrate established patterns into new or existing application projects.

Can I integrate these Laravel patterns into an existing application codebase?

Yes, you can integrate these Laravel patterns into an existing project to improve development efficiency and code maintainability. The guidelines support extending application architecture and maintaining routing, controllers, and Eloquent ORM structures.