Data Transfer Objects with validation for Laravel applications
MIT License
Bot releases are hidden (Show)
Published by WendellAdriel about 1 month ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.8.0...v3.8.1
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.7.1...v3.8.0
Published by WendellAdriel 3 months ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.7.0...v3.7.1
Published by WendellAdriel 3 months ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.6.1...v3.7.0
Published by WendellAdriel 3 months ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.6.0...v3.6.1
Published by WendellAdriel 3 months ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.5.2...v3.6.0
Published by WendellAdriel 5 months ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.5.1...v3.5.2
Published by WendellAdriel 7 months ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.5.0...v3.5.1
Published by WendellAdriel 7 months ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.4.0...v3.5.0
Published by WendellAdriel 9 months ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.3.0...v3.4.0
Published by WendellAdriel about 1 year ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.2.1...v3.3.0
Published by WendellAdriel about 1 year ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.2.0...v3.2.1
Published by WendellAdriel about 1 year ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.1.2...v3.2.0
Published by WendellAdriel about 1 year ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.1.1...v3.1.2
Published by WendellAdriel about 1 year ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.1.0...v3.1.1
Published by WendellAdriel about 1 year ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.0.1...v3.1.0
Published by WendellAdriel about 1 year ago
static
by @simon-tma in https://github.com/WendellAdriel/laravel-validated-dto/pull/48
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v3.0.0...v3.0.1
Published by WendellAdriel about 1 year ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v2.11.1...v3.0.0
Published by WendellAdriel over 1 year ago
Full Changelog: https://github.com/WendellAdriel/laravel-validated-dto/compare/v2.11.0...v2.11.1
Published by WendellAdriel over 1 year ago
callables/callbacks
You can now create new Castable
types for your project by using a callable/callback
:
class CustomDTO extends ValidatedDTO
{
protected function rules(): array
{
return [
'url' => ['required', 'url'],
];
}
protected function defaults(): array
{
return [];
}
protected function casts(): array
{
return [
'url' => function (string $property, mixed $value) {
return new URLWrapper($value);
},
];
}
}