1
I have a contact form in modal bootstrap. I have the validations where they are validating correctly. Now my question is: How do I stop when I do not pass the validation it return the message in modal with it open. When it validates and does not pass the validation it does not open the modal. So the client will never know that the form has been sent How’s my modal call: I have a view where I have the modal.blade.php in my index.blade.php I give a include in it and in my button where I activate the modal this way:
<div class="row">
<div class="col-md-2 col-md-offset-3">
<button type="button" data-toggle="modal"
data-target="#product_view" class="btn btn-default btn-lg">Clique aqui.</button>
</div>
</div>
This butano calls it my modal. How do I call this modal in the controller?
Put all the code from Controller, View and Javascript! so it gets complicated to say something.
– novic
Dude I don’t know Jquery, but looking at how little I know that is almost nothing, can fix a thing. was just to do a @if(Session::has('errors')) and call the modal here hehehe. @endif
– Natan Melo