There is no exercise better for the heart than reaching down and lifting people up. - John Holmes
Id | Name | Created At | Updated At |
---|
public function getBasic()
{
return view('datatables.eloquent.basic');
}
public function getBasicData()
{
$users = User::select(['id','name','email','created_at','updated_at']);
return Datatables::of($users)->make();
}
$(function() {
$('#users-table').DataTable({
processing: true,
serverSide: true,
ajax: 'https://yajratables.tuecus.com/eloquent/basic-data'
});
});