Laravel how to redirect back to boostrap modal dialog window
I just did something like this. You just need to use blade's templating!
//pass back a variable when redirecting
return Redirect::back()->with('error_code', 5);
And then in your blade template:
@if(!empty(Session::get('error_code')) && Session::get('error_code') == 5)
<script>
$(function() {
$('#myModal').modal('show');
});
</script>
@endif
This will opens the dialog whenever there is error_code is present and equals to 5!