Skip to content

Add Validation Attributes #21

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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