LimeDeck / nova-cashier-overview

Interact with your Stripe subscriptions directly inside Nova.
MIT License
28 stars 18 forks source link

Set default config stripeModel #27

Closed midesweb closed 2 years ago

midesweb commented 2 years ago

On a Cashier 13 upgrade, the config variable 'cashier.model' could be null. So, to avoid "Class name must be a valid object or a string" error, would be useful to set a default config value to 'App\User'.

reppair commented 2 years ago

You can close this one. Proper way to fetch the model is by using the Cashier::$customerModel so it stays in sync with what use set via Cashier::setCustomerModel($model) in your provider as this is the new way described in the cashier upgrade guide.

See #28

rudowastaken commented 2 years ago

Fixed in #28