app/Http/Controllers/AdminVideoController.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)
    {
        $request->validate([
            'title' => 'required',
            'body' => 'required',
        ]);
       $video = Video::find($id);
        $video->update($request->all());
        return redirect('/admin/video');
    }
public function update ( Request $ request , $ id ) { $ request -> validate ( [ 'title' => 'required' , 'body' => 'required' , ] ) ; $ video = Video :: find ( $ id ) ; $ video -> update ( $ request -> all ( ) ) ; return redirect ( '/admin/video' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .