You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a Photo model that extends from the Decoy Base model and uses HasImages fails dimension validation, I would like to prevent the model from being created.
I have tried to extend the onValidating and onValidation methods and conditionally check for failed/fails on the Illuminate\Validation\Validator object passed as the argument to these methods, but I am not seeing any failed rules.
Should the failed dimensions rules be available via failed in this instance?
The text was updated successfully, but these errors were encountered:
looks like by the time we fail validation model is set to Image, so onValidating on my Photo model is never called. Can't seem to find a way to go back once Image has failed validation and delete the related model.
If a Photo model that extends from the Decoy Base model and uses HasImages fails dimension validation, I would like to prevent the model from being created.
I have tried to extend the onValidating and onValidation methods and conditionally check for failed/fails on the Illuminate\Validation\Validator object passed as the argument to these methods, but I am not seeing any failed rules.
Should the failed dimensions rules be available via failed in this instance?
The text was updated successfully, but these errors were encountered: