API Resource Patterns Basic Resource Structure Conditional Attributes Nested Relationships Resource Collections Adding Links Resource Response Customization Pivot Data in Resources Wrapping and Unwrapping With Additional Data Best Practices Always Use whenLoaded for Relationships Use Type Hints Keep Resources Focused Use Resource Collections Controller Usage Checklist - [ ] Resources transform models consistently - [ ] Relationships loaded with whenLoaded() - [ ] Conditional attributes use when() - [ ] Collections include pagination metadata - [ ] Links included for HATEOAS - [ ] Type hints u…