Donations Appreciated

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

Click here to lend your support to: Laravel Datatables and make a donation at !

EloquentController.php - DataTables with manual count query.

Id Name Email Created At Updated At


    public function getManualCount(Request $request)
        if ($request->ajax()) {
            $users = User::query();

            return Datatables::of($users)

        return view('datatables.eloquent.manual-count');


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