protected function removeOneTag($tagName) { $tag = app(TagService::class)->find($tagName); if ($tag) { $this->tags()->detach($tag); } }