eloquent-relationship-traits

Community

Slim models, reusable relationships.

Authoredstevo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the issue of bloated Eloquent models by extracting repetitive relationship definitions into reusable traits, promoting cleaner, more maintainable code.

Core Features & Use Cases

  • Model Organization: Keeps Eloquent models lean by abstracting relationships into small, single-purpose traits.
  • Consistency: Ensures uniform definition and documentation of relationships across the application.
  • Composability: Allows models to easily compose multiple relationship concerns.
  • Use Case: When adding a new hasMany relationship to a User model, create a HasManyPosts trait in App\Models\Relationships and use it in the User model, keeping the User model itself concise.

Quick Start

Use the eloquent-relationship-traits skill to create a new BelongsToShop trait for a Product model.

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-relationship-traits
Download link: https://github.com/edstevo/standards/archive/main.zip#eloquent-relationship-traits

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 223,000+ vetted skills library on demand.