laravel-dtos

Community

Build typed Laravel DTOs with ease.

Authornextplus896
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a standardized approach to defining Data Transfer Objects (DTOs) in Laravel projects using Spatie Laravel Data, offering type safety, clear contracts between layers, and reusable patterns for API requests, responses, and domain data.

Core Features & Use Cases

  • Type-safe DTOs with constructor-promoted properties for clear, self-documenting data objects.
  • Nested DTOs, validation hooks, and transformation patterns for complex data flows.
  • Static factories and test factories to simplify testing and data generation.
  • Guidelines for transformers, data mapping, and repository/controller usage across controllers and services.

Quick Start

Define a simple DTO class using promoted properties, then map an incoming API request into the DTO with a static from* method, and validate the data in tests.

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-dtos
Download link: https://github.com/nextplus896/durra-alaseel/archive/main.zip#laravel-dtos

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.