Skip to content

add toValidationRule method #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2022
Merged

add toValidationRule method #2

merged 2 commits into from
Jul 13, 2022

Conversation

robtesch
Copy link
Contributor

Adds a toValidationRule method which returns the options are an instance of Illuminate\Validation\Rules\In. Useful for quickly use the same options that were passed to the front end as a validation rule in the back-end.

robtesch added 2 commits July 12, 2022 10:54
Adds a `toValidationRule` method which returns the options are an instance of `Illuminate\Validation\Rules\In`. Useful for quickly use the same options that were passed to the front end as a validation rule in the back-end
@rubenvanassche rubenvanassche merged commit ec3016b into spatie:main Jul 13, 2022
@rubenvanassche
Copy link
Member

Good idea, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants