app/Http/Controllers/FooterController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Footer  $footer
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Footer $footer)
    {
        $data=request()->validate([
            'desc1'=>'required',
            'year'=>'required',
        ]);
        $footer->update($data);
        return redirect('/footer');
    }
public function update ( Request $ request , Footer $ footer ) { $ data = request ( ) -> validate ( [ 'desc1' => 'required' , 'year' => 'required' , ] ) ; $ footer -> update ( $ data ) ; return redirect ( '/footer' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .