app/Http/Controllers/KulinerController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Kuliner  $kuliner
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $kuliner = Kuliner::findOrfail($id);
        $kategori = Kategori::all();
        $selectedkategori = Kuliner::findOrfail($id)->kategori_id;
        return view('kuliner.edit',compact('kuliner','kategori','selectedkategori'));
    }
public function edit ( $ id ) { $ kuliner = Kuliner :: findOrfail ( $ id ) ; $ kategori = Kategori :: all ( ) ; $ selectedkategori = Kuliner :: findOrfail ( $ id ) -> kategori_id ; return view ( 'kuliner.edit' , compact ( 'kuliner' , 'kategori' , 'selectedkategori' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .