spatie-data-transfer-objects
Installation
SKILL.md
⚠️ CRITICAL: Spatie Data Transfer Objects (DTOs)
🚨 FIRST THING: Generate TypeScript Types
WHENEVER YOU CREATE OR MODIFY A DTO, YOU MUST RUN THIS COMMAND:
php artisan typescript:transform
This is the ONLY correct way to generate TypeScript types from Spatie Data DTOs. Do NOT use npm build commands or other tools. This command must be run after any DTO changes to update resources/js/types/generated.d.ts.