예제 #1
0
 /**
  * Delete the profile qualifications work experience.
  *
  * @Delete("ajax/profile/qualifications/work-experience")
  * @Delete("ajax/pim/employee-list/{id}/qualifications/work-experience")
  *
  * @param QualificationsWorkExperienceRequest $request
  * @author Bertrand Kintanar
  */
 public function deleteWorkExperience(QualificationsWorkExperienceRequest $request)
 {
     if ($request->ajax()) {
         $workExperienceId = $request->get('id');
         try {
             WorkExperience::whereId($workExperienceId)->delete();
             print 'success';
         } catch (Exception $e) {
             print 'failed';
         }
     }
 }