/** * @param PropertyValue $values * @return string * @throws \Exception */ public function destroy(PropertyValue $values) { if ($values->id) { if ($values->delete()) { return json_encode(['status' => 'oke']); } } return json_encode(['status' => 'noke']); }