laravel-subscriptions
laravel-subscriptions copied to clipboard
The model PlanSubscription returns false on canUseFeature
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.