├── .editorconfig ├── LICENSE ├── README.md ├── composer.json ├── config └── dto.php └── src ├── Attributes ├── Cast.php ├── DefaultValue.php ├── Map.php └── Rules.php ├── Casting ├── ArrayCast.php ├── BooleanCast.php ├── CarbonCast.php ├── CarbonImmutableCast.php ├── Castable.php ├── CollectionCast.php ├── DTOCast.php ├── EnumCast.php ├── FloatCast.php ├── IntegerCast.php ├── ModelCast.php ├── ObjectCast.php └── StringCast.php ├── Concerns ├── DataResolver.php ├── DataTransformer.php ├── EmptyCasts.php ├── EmptyDefaults.php ├── EmptyRules.php └── Wireable.php ├── Console ├── Commands │ ├── MakeDTOCommand.php │ └── PublishStubsCommand.php └── stubs │ ├── dto.stub │ ├── resource_dto.stub │ └── simple_dto.stub ├── Contracts └── BaseDTO.php ├── Exceptions ├── CastException.php ├── CastTargetException.php ├── InvalidJsonException.php └── MissingCastTypeException.php ├── Providers └── ValidatedDTOServiceProvider.php ├── ResourceDTO.php ├── SimpleDTO.php ├── Support ├── ResourceCollection.php ├── TypeScriptCollector.php └── TypeScriptTransformer.php └── ValidatedDTO.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/.editorconfig -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/composer.json -------------------------------------------------------------------------------- /config/dto.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/config/dto.php -------------------------------------------------------------------------------- /src/Attributes/Cast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Attributes/Cast.php -------------------------------------------------------------------------------- /src/Attributes/DefaultValue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Attributes/DefaultValue.php -------------------------------------------------------------------------------- /src/Attributes/Map.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Attributes/Map.php -------------------------------------------------------------------------------- /src/Attributes/Rules.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Attributes/Rules.php -------------------------------------------------------------------------------- /src/Casting/ArrayCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/ArrayCast.php -------------------------------------------------------------------------------- /src/Casting/BooleanCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/BooleanCast.php -------------------------------------------------------------------------------- /src/Casting/CarbonCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/CarbonCast.php -------------------------------------------------------------------------------- /src/Casting/CarbonImmutableCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/CarbonImmutableCast.php -------------------------------------------------------------------------------- /src/Casting/Castable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/Castable.php -------------------------------------------------------------------------------- /src/Casting/CollectionCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/CollectionCast.php -------------------------------------------------------------------------------- /src/Casting/DTOCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/DTOCast.php -------------------------------------------------------------------------------- /src/Casting/EnumCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/EnumCast.php -------------------------------------------------------------------------------- /src/Casting/FloatCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/FloatCast.php -------------------------------------------------------------------------------- /src/Casting/IntegerCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/IntegerCast.php -------------------------------------------------------------------------------- /src/Casting/ModelCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/ModelCast.php -------------------------------------------------------------------------------- /src/Casting/ObjectCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/ObjectCast.php -------------------------------------------------------------------------------- /src/Casting/StringCast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Casting/StringCast.php -------------------------------------------------------------------------------- /src/Concerns/DataResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Concerns/DataResolver.php -------------------------------------------------------------------------------- /src/Concerns/DataTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Concerns/DataTransformer.php -------------------------------------------------------------------------------- /src/Concerns/EmptyCasts.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Concerns/EmptyCasts.php -------------------------------------------------------------------------------- /src/Concerns/EmptyDefaults.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Concerns/EmptyDefaults.php -------------------------------------------------------------------------------- /src/Concerns/EmptyRules.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Concerns/EmptyRules.php -------------------------------------------------------------------------------- /src/Concerns/Wireable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Concerns/Wireable.php -------------------------------------------------------------------------------- /src/Console/Commands/MakeDTOCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Console/Commands/MakeDTOCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/PublishStubsCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Console/Commands/PublishStubsCommand.php -------------------------------------------------------------------------------- /src/Console/stubs/dto.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Console/stubs/dto.stub -------------------------------------------------------------------------------- /src/Console/stubs/resource_dto.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Console/stubs/resource_dto.stub -------------------------------------------------------------------------------- /src/Console/stubs/simple_dto.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Console/stubs/simple_dto.stub -------------------------------------------------------------------------------- /src/Contracts/BaseDTO.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Contracts/BaseDTO.php -------------------------------------------------------------------------------- /src/Exceptions/CastException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Exceptions/CastException.php -------------------------------------------------------------------------------- /src/Exceptions/CastTargetException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Exceptions/CastTargetException.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidJsonException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Exceptions/InvalidJsonException.php -------------------------------------------------------------------------------- /src/Exceptions/MissingCastTypeException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Exceptions/MissingCastTypeException.php -------------------------------------------------------------------------------- /src/Providers/ValidatedDTOServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Providers/ValidatedDTOServiceProvider.php -------------------------------------------------------------------------------- /src/ResourceDTO.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/ResourceDTO.php -------------------------------------------------------------------------------- /src/SimpleDTO.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/SimpleDTO.php -------------------------------------------------------------------------------- /src/Support/ResourceCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Support/ResourceCollection.php -------------------------------------------------------------------------------- /src/Support/TypeScriptCollector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Support/TypeScriptCollector.php -------------------------------------------------------------------------------- /src/Support/TypeScriptTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/Support/TypeScriptTransformer.php -------------------------------------------------------------------------------- /src/ValidatedDTO.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WendellAdriel/laravel-validated-dto/HEAD/src/ValidatedDTO.php --------------------------------------------------------------------------------