update api scramble telescope

This commit is contained in:
2026-03-17 09:58:11 +07:00
parent 3a9f3bd813
commit 106283903e
21 changed files with 797 additions and 61 deletions
@@ -18,10 +18,10 @@ class KecamatanController extends Controller
$provinsi = Provinsi::all();
$kecamatan = Kecamatan::with('kabupatenkota')
$kecamatan = Kecamatan::with('kabupatenKota')
->where('nama', 'like', "%$search%")
->orWhere('kode', 'like', "%$search%")
->orWhereHas('kabupatenkota', function($query) use ($search) {
->orWhereHas('kabupatenKota', function($query) use ($search) {
$query->where('nama', 'like', "%$search%");
})
->orderBy('kode', 'asc')