Ejemplo n.º 1
0
 /**
  * Save the Profile - Qualifications - Work Experiences.
  *
  * @Post("profile/qualifications/work-experiences")
  * @Post("pim/employee-list/{id}/qualifications/work-experiences")
  *
  * @param QualificationsWorkExperienceRequest $request
  * @param WorkExperience $workExperience
  * @return \Illuminate\Http\RedirectResponse
  * @author Bertrand Kintanar
  */
 public function storeWorkExperience(QualificationsWorkExperienceRequest $request, WorkExperience $workExperience)
 {
     try {
         $workExperience->create($request->all());
     } catch (Exception $e) {
         return redirect()->to(str_replace('/work-experiences', '', $request->path()))->with('danger', UNABLE_ADD_MESSAGE);
     }
     return redirect()->to(str_replace('/work-experiences', '', $request->path()))->with('success', SUCCESS_ADD_MESSAGE);
 }