Donations Appreciated

No one has ever become poor by giving. - Anne Frank, diary of Anne Frank

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'}