Passing dynamic data to bootstrap modal with Laravel using jQuery post
I am trying to pass dynamic data to a bootstrap modal. What i want to do is pass the data-id by using jQuery post request. I have my view users containing a list with the users. when i click on details button i want to pass the id using jquery post and then using eloquent, retrieve everything about each user. my view <table class="table"> <thead class="thead-default"> <tr> <th>No.</th> <th>Name</th> <th>Actions</th> </tr> </thead> <tbody> <?php use App\User; $users = \App\User::where('admin',0)->get(); $i = 1;?> @foreach($users as $user) <tr id="{{$user->id}}"> <th scope="row">{{$i}}</th> <td