app/Http/Controllers/LabController.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)
    {
        Lab::find($id)->update(['nama_lab'=>$request->nama_lab]);
        Lab::find($id)->update(['tempat_lab'=>$request->tempat_lab]);
        Lab::find($id)->update(['keterangan'=>$request->keterangan]);
        return redirect()->route('lab.index');
    }
public function update ( Request $ request , $ id ) { Lab :: find ( $ id ) -> update ( [ 'nama_lab' => $ request -> nama_lab ] ) ; Lab :: find ( $ id ) -> update ( [ 'tempat_lab' => $ request -> tempat_lab ] ) ; Lab :: find ( $ id ) -> update ( [ 'keterangan' => $ request -> keterangan ] ) ; return redirect ( ) -> route ( 'lab.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .