79615496

Date: 2025-05-10 13:04:08
Score: 0.5
Natty:
Report link

hay pall i have problem in my ajax, if i have data 1000 or bigger in 1000, my data is loading

this is my code, can you'll bring solution, thank you

$query = PMB_T_MAHASISWA::query()
        ->with(['jalur_pendaftaran', 'program_studi', 'program_studi_2', 'program_studi_3'])
        ->withCount([
            'document as total_document',
            'document as uploaded_document' => function ($q) {
                $q->where('C_DOCUMENT_STATUS', 1);
            },
            // Tambahan: khusus dokumen pembayaran yang sudah status = 1
            'document as uploaded_pembayaran_document' => function ($q) {
                $q->where('C_DOCUMENT_TYPE', 'PEMBAYARAN')
                  ->where('C_DOCUMENT_STATUS', 1);
            },
            // Dokumen formulir yang sudah status = 1
            'document as uploaded_formulir_document' => function ($q) {
                $q->where('C_DOCUMENT_TYPE', 'FORMULIR')
                  ->where('C_DOCUMENT_STATUS', 1);
            }
        ]);
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Soni Hidayatulloh