/** * Remove category skill * * @param int $id * @return string */ public function destroy($id) { $cskill = CategorySkill::find($id); if ($cskill != null) { $cskill->delete(); } return json_encode("success"); }