We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
When I click the manage subscription, it does not expand.
And I get this in the response:
{"subscription":null}
The text was updated successfully, but these errors were encountered:
I found the reason. In StripeSubscriptionsController, you do this:
StripeSubscriptionsController
/** @var \Laravel\Cashier\Subscription $subscription */ $subscription = Subscription::find($subscriptionId);
But you need to retrieve the custom model like you do in the DatabaseSubscriptionsController
DatabaseSubscriptionsController
$stripeModel = $this->config->get('cashier.model'); /** @var \Illuminate\Database\Eloquent\Model $billableModel */ $billableModel = (new $stripeModel()); /** @var \Laravel\Cashier\Billable|\Illuminate\Database\Eloquent\Model $billable */ $billable = $billableModel->find($billableId);
Sorry, something went wrong.
No branches or pull requests
Hi,
When I click the manage subscription, it does not expand.
And I get this in the response:
{"subscription":null}
The text was updated successfully, but these errors were encountered: