app/Http/Controllers/MasyarakatController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Masyarakat  $masyarakat
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $masyarakat = Masyarakat::findOrFail($id);
        return view('masyarakat.edit',[
            'masyarakat' => $masyarakat,]);
    }
public function edit ( $ id ) { $ masyarakat = Masyarakat :: findOrFail ( $ id ) ; return view ( 'masyarakat.edit' , [ 'masyarakat' => $ masyarakat , ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .