eloquent-relationship-traits
CommunitySlim 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
hasManyrelationship to aUsermodel, create aHasManyPoststrait inApp\Models\Relationshipsand use it in theUsermodel, keeping theUsermodel 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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.