app/Http/Controllers/koordinatorController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request)
    {
          $s = sapi::where('id', $request->id)->update([
            'id_anggota' => $request->id_anggota,
            'jenis_kelamin' => $request->jenis_kelamin,
            'tipe_sapi' => $request->tipe_sapi,
            'eartag'=> $request->eartag,
            'fase' => $request->fase,
            'status' => $request->status
            ]);
        return redirect('koordinator/'.$request->id_anggota);
    }
public function update ( Request $ request ) { $ s = sapi :: where ( 'id' , $ request -> id ) -> update ( [ 'id_anggota' => $ request -> id_anggota , 'jenis_kelamin' => $ request -> jenis_kelamin , 'tipe_sapi' => $ request -> tipe_sapi , 'eartag' => $ request -> eartag , 'fase' => $ request -> fase , 'status' => $ request -> status ] ) ; return redirect ( 'koordinator/' . $ request -> id_anggota ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//end update halaman biasa