app/Http/Controllers/KecamatanController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Kecamatan  $kecamatan
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($idkab, $idkec)
    {
        $kabupaten = Kabupaten::whereUuid($idkab)->firstOrFail();
         dd($tahun);
        $kecamatan = Kecamatan::whereUuid($idkec)->firstOrFail();
         dd($longsor);
        return view('backend.kecamatan.edit', compact('kabupaten', 'kecamatan'));
    }
public function edit ( $ idkab , $ idkec ) { $ kabupaten = Kabupaten :: whereUuid ( $ idkab ) -> firstOrFail ( ) ; $ kecamatan = Kecamatan :: whereUuid ( $ idkec ) -> firstOrFail ( ) ; return view ( 'backend.kecamatan.edit' , compact ( 'kabupaten' , 'kecamatan' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
// // dd($tahun); // dd($longsor);