Request validation
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 7
- Joined: 22 Oct 2019, 16:43
Request validation
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.
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.
-
- Posts: 7
- Joined: 22 Oct 2019, 16:43
Re: Request validation
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)?
But there is another question - how make redirect back with error (redirect()->back() doesn't work)?
Re: Request validation
Which page/component/form do you want to extend? The address in the checkout process?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 7
- Joined: 22 Oct 2019, 16:43
Re: Request validation
I want to add input to base user's info in admin panel and make validation for this input.
Re: Request validation
If you throw an exception, the form is automatically displayed again:
https://github.com/aimeos/ai-admin-jqad ... #L230-L274
https://github.com/aimeos/ai-admin-jqad ... #L230-L274
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star