This repository has been archived by the owner on Apr 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 346
Name vs Title #22
Comments
Name: acts like the slug |
Hi, @Omranic The error with the "expected()" null point still happening. Even with your fix.
In public function canUseFeature(string $featureName): bool
{
$featureValue = $this->getFeatureValue($featureName);
// Debug: let's check if the plan exists and if it's features name are ok:
$plan = \Rinvex\Subscriptions\Models\Plan::first();
$sql = $this->usage()->byFeatureName($featureName)->toSql();
$usage = $this->usage()->byFeatureName($featureName)->first();
dd($featureName, $plan->features->pluck('name'), $usage, $sql);
// .... and so on...
} The result of the DD is:
So:
The But |
Since the |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, guys.
I think I found a new small bug:
In
HasSubscriptions
trait, we're missing the "title" in subscriptions->create method:Then it leads to errors in Validation:
I did not get the difference between "title" and "name". What's de difference in these properties and when should I use each one of those?
So, what I did was just this:
And the tests are green until now. Could you check if it works well for you too?
Thank you.
The text was updated successfully, but these errors were encountered: