app/Http/Controllers/ContactDetailController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\ContactDetail  $contactDetail
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, ContactDetail $contactDetail)
    {
        $data=request()->validate([
            'contact_name'=>'required',
            'contact_icons'=>'required',
            'contact_content'=>'required'
        ]);
        $contactDetail->update($data);
        return redirect('/ContactDetails');
    }
public function update ( Request $ request , ContactDetail $ contactDetail ) { $ data = request ( ) -> validate ( [ 'contact_name' => 'required' , 'contact_icons' => 'required' , 'contact_content' => 'required' ] ) ; $ contactDetail -> update ( $ data ) ; return redirect ( '/ContactDetails' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .