app/Http/Controllers/CompanyProfileController.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)
    {
        $companyProfiles = CompanyProfile::find($id);
        $update_companyProfile = array(
            'name' => $request->name,
            'pan_vat_no' => $request->pan_vat_no,
            'email' => $request->email,
            'address' => $request->address,
            'phone_no' => $request->phone_no,
            'mobile_no'=>$request->mobile_no,
            'website'=>$request->website,
            'latitude'=>$request->latitude,
            'longitude'=>$request->longitude
        );
        $companyProfiles->update($update_companyProfile);
        return redirect('admin/companyprofile');
    }
public function update ( Request $ request , $ id ) { $ companyProfiles = CompanyProfile :: find ( $ id ) ; $ update_companyProfile = array ( 'name' => $ request -> name , 'pan_vat_no' => $ request -> pan_vat_no , 'email' => $ request -> email , 'address' => $ request -> address , 'phone_no' => $ request -> phone_no , 'mobile_no' => $ request -> mobile_no , 'website' => $ request -> website , 'latitude' => $ request -> latitude , 'longitude' => $ request -> longitude ) ; $ companyProfiles -> update ( $ update_companyProfile ) ; return redirect ( 'admin/companyprofile' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .