How to add the Custom validation messages in field in Nova resource ? #5409
Unanswered
divya-kanak
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
In the resource file, How to add the Custom validation messages in the field in Nova resource?
I have one field as below, I need to add the validation message for required_if.
Multiselect::make('Roles', 'roles') ->placeholder('Choose an option) ->belongsToMany(\Pktharindu\NovaPermissions\Nova\Role::class, false) ->rules('required_if:is_admin,0'),As I don't want to use the lang/en/validation.php which is generated by the system.
Beta Was this translation helpful? Give feedback.
All reactions