Donations Appreciated

You have not lived today until you have done something for someone who can never repay you. - John Bunyan

EloquentController.php - Basic Demo with Object Data Source

Since v6.0, you can now optionally set value to null. The package will automatically use value as column name when filtering and sorting records.

NOTE: This is only applicable if your column name is the same with the data to display. If not, you need to specify on your script.
Id Name Email Created At Updated At


    public function getBasicObject()
        return view('datatables.eloquent.basic-object');

    public function getBasicObjectData()
        return Datatables::of(User::query())->make(true);


        processing: true,
        serverSide: true,
        ajax: '',
        columns: [
            {data: 'id'},
            {data: 'name'},
            {data: 'email'},
            {data: 'created_at'},
            {data: 'updated_at'}