laravel-mixpanel icon indicating copy to clipboard operation
laravel-mixpanel copied to clipboard

Does not detect alternative Cashier model

Open dnnp2011 opened this issue 3 years ago • 0 comments

My application uses a Team model instead of the default User model in Cashier, however, your RecordStripeEvent class determines the auth model via: $authModel = config('auth.providers.users.model') ?? config('auth.model');

Simply updating this to check for Cashier's CASHIER_MODEL env variable would fix this issue:

$authModel = config('cashier.model') ?? (config('auth.providers.users.model') ?? config('auth.model'));

dnnp2011 avatar Feb 17 '21 15:02 dnnp2011