laravel:api-resources-and-pagination

Community

Stable, cache-friendly API responses.

Authormeistro57
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps maintain stable and cache-friendly API response shapes by separating data representation from Eloquent models and managing pagination effectively.

Core Features & Use Cases

  • API Resource Transformation: Define explicit structures for your API responses, ensuring consistency.
  • Conditional Fields: Include fields in responses only when certain conditions are met, reducing payload size and complexity.
  • Pagination Handling: Seamlessly integrate with Laravel's pagination, providing clients with necessary links and cursors.
  • Use Case: When fetching a list of posts, ensure only essential fields like id, title, and author are returned, and include pagination links for easy navigation.

Quick Start

Use the laravel:api-resources-and-pagination skill to create a new API resource for the 'Post' 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: laravel:api-resources-and-pagination
Download link: https://github.com/meistro57/chat_bridge/archive/main.zip#laravel-api-resources-and-pagination

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.