laravel-dtos
Laravel DTOs
Never pass multiple primitive values. Always wrap data in Data objects.
Related guides:
- dto-transformers.md - Transform external data into DTOs
- test-factories.md - Create hydrated DTOs for tests
Philosophy
DTOs provide:
- Type safety and IDE autocomplete
- Clear contracts between layers
- Test factories for easy test data generation
- Validation integration
- Transformation from requests to domain objects
Spatie Laravel Data Package
More from leeovery/agentic-skills
laravel-quality
Code quality tooling with PHPStan, Pint, and strict types. Use when configuring or running static analysis, code style, or linting.
26laravel-testing
Comprehensive testing patterns with Pest. Use when writing or modifying tests, mocking, factories, or test patterns.
25laravel-query-builders
Custom query builders for type-safe, composable database queries. Use when creating or modifying query builders, query scopes, or complex database queries.
25laravel-architecture
High-level architecture decisions, patterns, and project structure. Use when deciding which pattern to use, organizing code, or making structural decisions.
23laravel-providers
Service providers, bootstrapping, and application configuration. Use when modifying service providers, booters, bootstrap logic, or app-level configuration.
23laravel-validation
Form request validation and comprehensive validation testing. Use when creating or modifying form requests, validation rules, or validation tests.
23