I just made a very simplistic example and it worked here.
See if it helps you:
Route
Route::get('see/{id}', 'Adm\UsuarioController@show');
Controller
$data['usuario'] = User::find($id);
Request button
@foreach($usuarios as $key => $value) <!-- Aqui eu tenho todos os meus usuários -->
<a class="btn btn-default btn-xs btn-block" href='{{url("see/$value->id")}}'>
See
</a>
@endforeach
Modal presentation
@if(isset($usuario))
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">{{$usuario->name}}</h4>
</div>
<div class="modal-body">
{{$usuario->email}}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(window).load(function(){
$('#myModal').modal('show');
});
</script>
@endif
See the main thing is to know if there are any users on that route.
I ask if this set any user, positive case I show my modal with the information.
I hope I’ve helped.
You are doing via ajax ? You’re making a mistake ?
– Ricardo Mota
I’m not using ajax I thought with Laravel directly by Controller would work
– Shaolin Fantastic
So how are you activating without refresh? You could post the full code ?
– Ricardo Mota
It would not be without refresh when click on the grid link give a get on Route and access the Controller show($id) and it returns to view editSchools that would be Modal
– Shaolin Fantastic
I’ll test a moment.
– Ricardo Mota
All the users you click to edit load the same data into the modal, is that it? As if you had always clicked on the same user?
– Raylan Soares