I have a modal bootstrap contact form. I have the validations where they are validating correctly. Now my question is: How do I when not to pass the validation it return the message in modal with it open. When it validates and does not pass validation it does not open the modal. So the customer will never know that the form was sent How is my call in the modal: I have a View where I have the modal.blade.php in my index.blade.php I give an include in it and in my button where it activates the modal like this:
<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 butane calls my modal. How do I call this modal in the controller?