public function getDataTables()
{
$datataba = DB::table('contacts')->where('called', 0)->select(['contacts.id', 'contacts.email', 'contacts.name', 'contacts.kontaktm', 'contacts.phone', 'contacts.call', 'contactforms.created_at']);
return Datatables::of($datataba)
->addColumn('action', function($datataba){
return '<a href="#"> Set as marked</a>';
})
->make(true);
}
I want that if someone clicks on the button the value instantly changes from 0 (default value) to 1 in "call"
How can I do it?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire