We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f856dd1 commit 4397f9eCopy full SHA for 4397f9e
src/Concerns/HasFeatures.php
@@ -150,7 +150,9 @@ protected function getAllGroups(array $groups): Collection
150
151
public function groupHasFeature(string $featureName): bool
152
{
153
- return $this->groups->features->contains('name', $featureName);
+ return $this->hasFeatureThroughGroup(
154
+ feature: $featureName,
155
+ );
156
}
157
158
protected function featureExists(string $featureName): bool
0 commit comments