app/Http/Controllers/SapiadmController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\sapiadm  $sapiadm
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id_anggota,$id_sapi)
    {
        $s = sapi::all()->where('id', $id_sapi);
        $a = anggotaadm::all()->where('id', $id_anggota);
        return view('sapiadm.edit', compact('s','a'));
      }
public function edit ( $ id_anggota , $ id_sapi ) { $ s = sapi :: all ( ) -> where ( 'id' , $ id_sapi ) ; $ a = anggotaadm :: all ( ) -> where ( 'id' , $ id_anggota ) ; return view ( 'sapiadm.edit' , compact ( 's' , 'a' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
// var_dump($a) or die();