app/Http/Controllers/InfopraktisController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Infopraktis  $infopraktis
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request,$id)
    {
        $this->validate($request,[
            'tips' => 'required|',
        ]);
        $info = Infopraktis::findOrFail($id);
        $info->tips = $request->tips;
        $info->save();
        return redirect()->route('info.index');
    }
public function update ( Request $ request , $ id ) { $ this -> validate ( $ request , [ 'tips' => 'required|' , ] ) ; $ info = Infopraktis :: findOrFail ( $ id ) ; $ info -> tips = $ request -> tips ; $ info -> save ( ) ; return redirect ( ) -> route ( 'info.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .