Donations Appreciated

Doing nothing for others is the undoing of ourselves. - Horace Mann

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

EloquentController.php - Model With Trashed (Soft Deletes)

Id Name Email Created At Updated At


    public function getWithTrashed(Request $request)
        if ($request->ajax()) {
            return Datatables::of(User::withTrashed())

        return view('datatables.eloquent.with-trashed', ['title' => 'Model With Trashed (Soft Deletes)']);


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