Closed subzero10 closed 3 years ago
You are incorrect on validateFields
in the ActionRequest
not being hit. I can say for certain (as I just ran a test) that validateFields
method is hit for an Action that uses the trait ActionHasDependencies
.
I would suggest in the future that bug fixes aren't combined as part of this PR might have been accepted but as of now it will simply be closed.
If you feel that this resolution is in error please submit an issue so it can be further investigated.
You are incorrect on
validateFields
in theActionRequest
not being hit. I can say for certain (as I just ran a test) thatvalidateFields
method is hit for an Action that uses the traitActionHasDependencies
.I would suggest in the future that bug fixes aren't combined as part of this PR might have been accepted but as of now it will simply be closed.
Can you please point me to that test? Thanks.
You can throw a dump statement in this packages code in your own environment in the ActionRequest
validateFields
method and see that upon submission that code is hit. Specifically anywhere in the function itself after https://github.com/epartment/nova-dependency-container/blob/master/src/Http/Requests/ActionRequest.php#L18
Even when actions use the trait
ActionHasDependencies
, thevalidateFields()
of the trait is never called, because thevalidateFields()
of the ActionRequest never calls it. I also fixed a minor bug wherefieldsForValidation()
would not return the resulting array.