Ejemplo n.º 1
0
 /**
  * Delete the employment status.
  *
  * @Delete("ajax/delete-employment-status")
  *
  * @param EmploymentStatusRequest $request
  * @author Bertrand Kintanar
  */
 public function deleteEmploymentStatus(EmploymentStatusRequest $request)
 {
     if ($request->ajax()) {
         $employmentStatusId = $request->get('id');
         try {
             EmploymentStatus::whereId($employmentStatusId)->delete();
             print 'success';
         } catch (Exception $e) {
             print 'failed';
         }
     }
 }