laravel-subscriptions icon indicating copy to clipboard operation
laravel-subscriptions copied to clipboard

The model PlanSubscription returns false on canUseFeature

Open jamesallan93 opened this issue 3 years ago • 0 comments

I think canUseFeature is wrong. In the first if condition.

$featureValue = $this->getFeatureValue($featureSlug);

$usage = $this->usage()->byFeatureSlug($featureSlug)->first();

if ($featureValue === 'true') {
    return true;
}

The function getFeatureValue only returns a value or null but never "true" as string.

jamesallan93 avatar Dec 30 '21 05:12 jamesallan93