app/Http/Controllers/NavcontactController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Navcontact  $navcontact
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Navcontact $navcontact)
    {
        $data=request()->validate([
            'contact_item'=>'required',
            'contact_url'=>'required',
            'contact_icons'=>'required'
        ]);
        $navcontact->update($data);
        return redirect('/navcontact');
    }
public function update ( Request $ request , Navcontact $ navcontact ) { $ data = request ( ) -> validate ( [ 'contact_item' => 'required' , 'contact_url' => 'required' , 'contact_icons' => 'required' ] ) ; $ navcontact -> update ( $ data ) ; return redirect ( '/navcontact' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .