update api scramble telescope
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user