samedi 1 décembre 2018

Ajax Delete in Laravel

how to delete data in a table without refreshing the page here is my href button

this two buttons are delete one is to archive and one is to force delete the problem is they are refreshing when clicked.

  <td><a href="/admin/clients/archTrash/" class="btn btn-info">Active</a></td>


 <td><a href="/admin/clients/archTrashPermanent/" class="fa fa-trash btn btn-danger"></a></td>

my controller

    $client = new Client;
    $client->client_code = $request->input('client_code');
    $client->client_name = $request->input('client_name');

   $client->save();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire