app/Http/Controllers/AboutController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\About  $about
     * @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,[
            'deskripsi' => 'required|',
        ]);
        $about = About::findOrFail($id);
        $about->deskripsi = $request->deskripsi;
        $about->save();
        return redirect()->route('about.index');
    }
public function update ( Request $ request , $ id ) { $ this -> validate ( $ request , [ 'deskripsi' => 'required|' , ] ) ; $ about = About :: findOrFail ( $ id ) ; $ about -> deskripsi = $ request -> deskripsi ; $ about -> save ( ) ; return redirect ( ) -> route ( 'about.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .