-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get user subscription on planSubscription('main') function #23
Comments
I solve it by overriding the function by recreating a function on my User model where the trait has been applied.
|
Hi! public function getSlugOptions(): SlugOptions
{
return SlugOptions::create()
->doNotGenerateSlugsOnUpdate()
->generateSlugsFrom('name')
->saveSlugsTo('slug')
->extraScope(fn($builder) => $builder->where('plan_id', $this->plan_id));
} And remove unique key for slug in DB. My solution allows you to make a unique slug for a separate plan. |
Yeah, bit annoying. I've forked this project to rebuild it to get rid of this issue so I might publish it if you need it. |
Hello guys, I am really having trouble getting the user subscription, it always returns null even though the user was subscribed already, I have checked the sdubscriptions table on database and the user's id was there. It only happens on live server, no issue on local.
The text was updated successfully, but these errors were encountered: