eloquent-orm-patterns

Community

Standardize Eloquent models with Laravel patterns.

Authormajedsiefalnasr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill provides a structured approach to define Eloquent models, relationships, scopes, and repository access patterns in Laravel, helping teams maintain consistent data access layers and scalable domain models.

Core Features & Use Cases

  • Schema Definition Patterns: Guidelines for modeling with relationships, casts, and accessors.
  • Repository Pattern: Examples of a dedicated repository class to encapsulate data access.
  • Query Optimization Rules: Best practices to avoid N+1 queries and improve performance.
  • Enum Pattern: A pattern for defining domain-specific enums with localized labels.
  • Use Case: Create a Project model with relationships, scopes, and a repository to manage data retrieval and persistence.

Quick Start

Create a Laravel project and implement an Eloquent ORM pattern set following the schema, repository, and query optimization guidelines.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: eloquent-orm-patterns
Download link: https://github.com/majedsiefalnasr/bunyan-app-cursor/archive/main.zip#eloquent-orm-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.