Example #1
0
 /**
  * Delete the profile job details.
  *
  * @Delete("ajax/profile/job/edit")
  * @Delete("ajax/pim/employee-list/{id}/job/edit")
  *
  * @param JobRequest $request
  * @author Bertrand Kintanar
  */
 public function deleteJobHistory(JobRequest $request)
 {
     if ($request->ajax()) {
         $jobHistoryId = $request->get('id');
         try {
             JobHistory::whereId($jobHistoryId)->delete();
             print 'success';
         } catch (Exception $e) {
             print 'failed';
         }
     }
 }