public function remove($code) { return $this->createModel()->newQuery()->where('code', $code)->delete(); }