app/Http/Controllers/PengujianController.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, $id)
    {
        Pengujian::find($id)->update(['id_petugas_admin'=>$request->id_petugas_admin]);
        Pengujian::find($id)->update(['id_petugas_lab'=>$request->id_petugas_lab]);
        Pengujian::find($id)->update(['total_harga'=>$request->total_harga]);
        Pengujian::find($id)->update(['bukti_pembayaran'=>$request->bukti_pembayaran]);
        Pengujian::find($id)->update(['status_pengujian'=>$request->status_pengujian]);
        Pengujian::find($id)->update(['hasil_pengujian'=>$request->hasil_pengujian]);
        return redirect()->route('pengujian.index');
    }
public function update ( Request $ request , $ id ) { Pengujian :: find ( $ id ) -> update ( [ 'id_petugas_admin' => $ request -> id_petugas_admin ] ) ; Pengujian :: find ( $ id ) -> update ( [ 'id_petugas_lab' => $ request -> id_petugas_lab ] ) ; Pengujian :: find ( $ id ) -> update ( [ 'total_harga' => $ request -> total_harga ] ) ; Pengujian :: find ( $ id ) -> update ( [ 'bukti_pembayaran' => $ request -> bukti_pembayaran ] ) ; Pengujian :: find ( $ id ) -> update ( [ 'status_pengujian' => $ request -> status_pengujian ] ) ; Pengujian :: find ( $ id ) -> update ( [ 'hasil_pengujian' => $ request -> hasil_pengujian ] ) ; return redirect ( ) -> route ( 'pengujian.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .