app/Http/Controllers/KecamatanController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request, $uuid)
    {
        $kab = Kabupaten::whereUuid($uuid)->firstOrFail();
        $data = Kecamatan::where('id_kabupaten', $kab->uuid)->get();
        return view('backend.kecamatan.index', compact('kab', 'data'));
    }
public function index ( Request $ request , $ uuid ) { $ kab = Kabupaten :: whereUuid ( $ uuid ) -> firstOrFail ( ) ; $ data = Kecamatan :: where ( 'id_kabupaten' , $ kab -> uuid ) -> get ( ) ; return view ( 'backend.kecamatan.index' , compact ( 'kab' , 'data' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
// dd(count($longsors));