Page 1 of 1

Request validation

Posted: 22 Nov 2019, 11:27
by olexandersh
Hello!
How can I use Laravel request validation in admin panel for creating/updating products or users? Is it possible include validation rules for inputs?
Before that I added some custom fields.

Re: Request validation

Posted: 22 Nov 2019, 13:13
by olexandersh
I found to add Validator class and make validation.
But there is another question - how make redirect back with error (redirect()->back() doesn't work)?

Re: Request validation

Posted: 23 Nov 2019, 08:28
by aimeos
Which page/component/form do you want to extend? The address in the checkout process?

Re: Request validation

Posted: 25 Nov 2019, 08:33
by olexandersh
I want to add input to base user's info in admin panel and make validation for this input.

Re: Request validation

Posted: 26 Nov 2019, 20:42
by aimeos
If you throw an exception, the form is automatically displayed again:
https://github.com/aimeos/ai-admin-jqad ... #L230-L274