I shall try to be as explicit as possible…I am quite new in Laravel…
Process:
1) I have a view with form where a customer should enter a promo; I have a PromoRequest to validate this promo code ;
2) I have a view with a form where, if the promo code passed the rules, the customer should fill in his data; I have a CustRequest to validate his date (p.e. ‘email’ => ‘required’ etc)
3) And finally I have a confirmation view to show the customer data with a validation button; if find, I store the data in a DB, and send an email
Issue:
1) The first step works fine
2) In the second view, if my validation rule fails (p.e. no email), I got a MethodNotAllowedHttpException I understand that if the inscription validation fails (no email), it goes back to my inscription form which is a POST method…and that brings the problem…
How can I sort that out???
Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire