skip to Main Content

why can't orderby desc and asc work? in laravel

example image data : when the js responds, the data has already been ordered by example image response js : example controller and query : $query = Verifikasi_tte::join('surat_ttes', 'surat_ttes.id', '=', 'verifikasi_ttes.surat_tte_id') ->join('users', 'users.id', '=', 'surat_ttes.user_id') ->join('jenis_surat_ttes', 'jenis_surat_ttes.id', '=', 'surat_ttes.jenis_surat_tte_id') ->select('surat_ttes.id','surat_ttes.klasifikasi','surat_ttes.no_surat','surat_ttes.tgl_surat','surat_ttes.created_at',…

VIEW QUESTION

How to change index in Laravel Builder Eloquent

Is it possible to customize the index of array in Laravel Builder? I need the index is not incremented from 0 but with some integer This is my code: foreach ($members as $member) { $check[$member->id] = TransactionInNon::where('member_id', $member->id) ->whereYear('created_at', $year)…

VIEW QUESTION
Back To Top
Search