lundi 2 septembre 2019

FormRequest managing extra actions

I have a multi-step form and each step with its own FormRequest for validating fields.

All works fine but I need to make some extra actions in case one field is not validated.

So, if the FormRequest results in an error, the controller is bypassed and returned to the view showing errors.

In my case, I have a validation rule for title. In case title exists in database, i need to run some extra php code.

How can i accomplish this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire