Skip to content
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

Problem required_with #822

Closed
winiarmc opened this issue Feb 10, 2022 · 4 comments
Closed

Problem required_with #822

winiarmc opened this issue Feb 10, 2022 · 4 comments
Labels

Comments

@winiarmc
Copy link

Subject of the issue

Problem with (required_with) validation rule.

Your environment

  • version of this package: 4.7.0
  • version of Laravel: 8

Steps to reproduce

No error message is displayed when these rules are applied.
'method_ids' => 'sometimes',
'online_delivery_amount.' => 'required_with:method_ids.',

  • (method_ids. *) is ignored. if I enter a number e.g. method_ids.1 validation is works.

Expected behaviour

if the. * tag is present, the validation should work, it should display an error

Actual behaviour

Currently, validation does not occur for this method and the use of * (ids of the array)

@bytestream
Copy link
Collaborator

Try using #505 for better array validation support.

@winiarmc
Copy link
Author

winiarmc commented Feb 10, 2022

Unfortunately, this does not solve the problem. JS validation is ignored.

@winiarmc
Copy link
Author

is there any other solution?

@stale
Copy link

stale bot commented Feb 26, 2022

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automatically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)

@stale stale bot added the stale label Feb 26, 2022
@stale stale bot closed this as completed Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants