Apply Pagination
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Modules\Internal\Http\Controllers\Api;
|
||||
|
||||
use App\Exceptions\ImportRowException;
|
||||
use App\Helpers\Helper;
|
||||
use App\Models\Corporate;
|
||||
use App\Models\Exclusion;
|
||||
use App\Models\Icd;
|
||||
@@ -29,7 +30,8 @@ class DiagnosisExclusionController extends Controller
|
||||
->with(['exclusionable', 'rules'])
|
||||
->filter($request->toArray())
|
||||
->paginate();
|
||||
|
||||
// return $exclusions;
|
||||
return Helper::paginateResources(DiagnosisExclusionResource::collection($exclusions));
|
||||
return response()->json(DiagnosisExclusionResource::collection($exclusions)->response()->getData(true));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user