api-resource-patterns
CommunityMaster Laravel API Resources best practices.
AuthorJefersonCCJM
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Standardize Laravel API Resource patterns to ensure consistent transformation of models into API payloads.
Core Features & Use Cases
- Canonical Resource and ResourceCollection structures with toArray and toArray variations
- Efficient and safe relationship loading with whenLoaded and mergeWhen
- Clear guidelines for conditional attributes, wrapping, and hypermedia links
Quick Start
Use a standard PostResource and PostCollection pattern to format API responses in your Laravel app.
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: api-resource-patterns Download link: https://github.com/JefersonCCJM/hotel_san_pedro/archive/main.zip#api-resource-patterns 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.