laravel-api

Develops RESTful Laravel APIs with Sanctum authentication and request validation.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill laravel-api-jorge-ivan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-api
Source: https://github.com/Jorge-Ivan/uam-hogar-nazareth-web/tree/main/.claude/skills/laravel-api
Command: npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill laravel-api-jorge-ivan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the development of secure, scalable, and well-structured RESTful APIs using the Laravel framework, ensuring consistency and maintainability.

Core Features & Use Cases

  • API Resource Transformation: Define clear JSON structures for your API responses, separating presentation from data.
  • Sanctum Authentication: Implement secure token-based authentication for your API endpoints.
  • Input Validation: Ensure data integrity with robust validation rules using Form Requests.
  • Route Versioning: Manage API evolution by versioning your endpoints (e.g., /v1/, /v2/).
  • Rate Limiting: Protect your API from abuse by controlling request frequency.
  • Use Case: Develop a new API endpoint to manage user profiles, ensuring all input is validated, responses are consistently formatted, and only authenticated users can access sensitive data.

Quick Start

Use the laravel-api skill to create a new API resource for a 'Product' model, including CRUD routes and validation.

Frequently Asked Questions about laravel-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a RESTful API in Laravel with Sanctum authentication?

To build a secure RESTful API in Laravel, use Sanctum for token-based authentication to protect endpoints. This approach ensures only authenticated users can access sensitive data while maintaining a scalable and well-structured API.

What is the best way to format Laravel API responses consistently?

The best way to format Laravel API responses consistently is using API Resources for response transformation. This separates presentation from data, allowing you to define clear JSON structures for your endpoints and maintain data integrity.

How do I validate input data for a Laravel RESTful API endpoint?

You validate input data for a Laravel RESTful API using Form Requests. This mechanism ensures robust validation rules are applied before data reaches your controllers, guaranteeing data integrity for operations like managing user profiles.

Can I implement route versioning and rate limiting for scalable Laravel APIs?

Yes, you can implement route versioning and rate limiting for scalable Laravel APIs. Versioning manages API evolution through endpoints like `/v1/` and `/v2/`, while rate limiting controls request frequency to protect the API from abuse.

Does Laravel Sanctum support token-based authentication for scalable APIs?

Yes, Laravel Sanctum supports secure token-based authentication for scalable APIs. It provides the necessary mechanism to issue tokens and control access, ensuring that only authorized requests can interact with your protected RESTful API endpoints.