/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // $jenis = JenisPekerjaan::find($id); if (is_null($jenis)) { return Response::json("Not Found", 404); } $success = $jenis->delete(); if (!$success) { return Response::json("Error Delete", 500); } return Response::json("Success Delete", 200); }