withValidator #524
Replies: 2 comments
-
Hello @soluzione-software I can't reproduce your issue. In my /**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required|min:5|max:255',
'icon' => 'required',
];
}
public function withValidator($validator)
{
dd('here, test');
} Then I added in my CRUD: protected function setupCreateOperation()
{
$this->crud->setValidation(IconRequest::class);
} When I submit the form I got the expected Cheers |
Beta Was this translation helpful? Give feedback.
0 replies
-
Due to no activity, I will close this issue, but please feel free to re-open or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I have a problem: in my crud i have a request that extends formrequest.
i don't understand why but the withValidator method not triggering
i'm using backpack 5 with Laravel 9
can anyone help me?
thanks
Beta Was this translation helpful? Give feedback.
All reactions