laravel

Creates Laravel 12 API-only architecture with Actions, DTOs, and API Resources.

13|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/ulpi-io/browse --skill laravel-ulpi-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel
Source: https://github.com/ulpi-io/browse/tree/main/.agents/skills/laravel
Command: npx skills add https://github.com/ulpi-io/browse --skill laravel-ulpi-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel 12 API development often suffers from dispersed patterns across controllers, actions, requests, resources, and tests. This Skill provides a cohesive API blueprint that centralizes architecture decisions for API endpoints, versioning, validation, authorization, and observability.

Core Features & Use Cases

  • API-only structure with thin controllers, Actions, DTOs, and API Resources
  • Strong authentication, authorization, and policy-driven access
  • End-to-end lifecycle: migrations, queues, tests, and observability across v1 routes

Quick Start

Install the Laravel API stack, scaffold an API version, and begin implementing Actions, DTOs, and API Resources to rapidly deliver a production-ready API.

Frequently Asked Questions about laravel

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

FAQPage Schema
How do I structure a production-ready Laravel API using Actions and DTOs?

Structure a production-ready Laravel API by implementing thin controllers that delegate to Action classes, passing Data Transfer Objects for type-safe data flow, and returning API Resources for consistent response formatting across versioned routes.

What is the best way to organize Laravel API routes and middleware for API-only architecture?

Organize Laravel API routes and middleware by enforcing an API-only structure with versioned route definitions, policy-driven authorization, and consistent error handling to ensure strict separation of concerns across API versions.

How do I handle mass assignment protection and database transactions in Laravel API development?

Handle mass assignment protection and database transactions in Laravel API development by enforcing strict architectural rules that require explicit fillable fields and wrapping multi-step database mutations in DB transactions.

Does this Laravel API architecture blueprint include testing and observability for API endpoints?

This Laravel API architecture blueprint includes robust validation and testing alongside observability, covering the end-to-end lifecycle from migrations to queues to ensure API endpoints are production-grade.

How do API Resources and paginator envelopes work in Laravel API responses?

API Resources transform Eloquent models into consistent JSON structures, while paginator envelopes wrap paginated data to provide standardized metadata, ensuring predictable API resource responses across endpoints.

When should I use Actions and DTOs instead of standard Laravel controllers for API endpoints?

Use Actions and DTOs instead of standard Laravel controllers when building complex API endpoints that require centralized architecture decisions, strong validation, and testable single-action classes to prevent dispersed patterns.