add data in requiredIf closure parameter #44985
Unanswered
comhon-project
asked this question in
Ideas
Replies: 1 comment 1 reply
-
As long it is not available, this package may be a nice workaround. https://packagist.org/packages/henzeb/laravel-console-facade |
Beta Was this translation helpful? Give feedback.
1 reply
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, I would like to do a request feature for
Rule::requiredIf
closure.Actual :
requiredIf
closure doesn't have parameterExpected :
requiredIf
closure contains all data to be validated as first parameter.example :
Obviously in this simple example I may access $inputs like this
but in a more complex situation where i would not have access to
$inputs
It would be very helpfull to have this parameter.(in my case I have dynamic models and my rules are built dynamically and I can't access
$inputs
).is it something possible and desirable ?
Beta Was this translation helpful? Give feedback.
All reactions