Skip to content

Add Validation Attributes #21

@SimonvanWijhe

Description

@SimonvanWijhe

Looking at this example in the docs of laravel-data you can see that the data class is responsible for validating the request. The result of $postData->toArray() is used as input for the actual factory/model that creates the post.

I have not used or tested this package yet for validating requests. I would really like to try this out and add the necessary validation attributes to the data classes in this package. https://spatie.be/docs/laravel-data/v4/validation/using-validation-attributes.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions