/**
  * Update the specified resource in storage.
  *
  * @param  WorkExperienceRequest $request
  * @param  int                   $id
  * @return \Illuminate\Http\Response
  */
 public function update(WorkExperienceRequest $request, $id)
 {
     $work_experience = $this->work_experiences->find($id);
     $work_experience->update($request->all());
     flash()->success('Updated!', 'Work Experience has been updated');
     return redirect()->route('admin.work_experience.index');
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  WorkExperienceRequest $request
  * @param  int                   $id
  * @return \Illuminate\Http\Response
  */
 public function update(WorkExperienceRequest $request, $id)
 {
     $data = $request->all();
     $obj = $this->repository->find($id);
     $this->repository->update($data, $obj);
     return redirect()->route('admin.work_experience.index');
 }