models
CommunityCraft robust Eloquent models with clean relations
Authoraronpc
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Eloquent models are the foundation of Laravel data access, enabling clean representation of entities and their relationships across modules.
Core Features & Use Cases
- Relational mappings (belongsTo, hasMany, etc.) and nested relationships
- Scoped queries (local and global) and reusability through factories
- Multi-tenancy awareness via tenant-aware patterns and scopes
- Accessors, mutators, and casts for data shaping and validation
- Soft deletes and event hooks to manage lifecycle changes
- Practical examples for architecture with thin models and rich domain logic delegated to actions
Quick Start
Define a basic Product model with relationships and a global TenantScope to enforce tenant isolation.
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: models Download link: https://github.com/aronpc/ai/archive/main.zip#models 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.