laravel-mixpanel
laravel-mixpanel copied to clipboard
Does not detect alternative Cashier model
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'));