Skip to content

Commit

Permalink
Update RecordStripeEvent.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner authored May 21, 2024
1 parent 022b582 commit b3b52c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Requests/RecordStripeEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public function process()
? $data['data']['previous_attributes']
: [];
$stripeCustomerId = $this->findStripeCustomerId($transaction);
$authModel = config('cashier.model') ?? config('auth.providers.users.model') ?? config('auth.model');
$authModel = config('cashier.model')
?? config('auth.providers.users.model')
?? config('auth.model');
$user = app($authModel)->where('stripe_id', $stripeCustomerId)->first();

if (! $user) {
Expand Down

0 comments on commit b3b52c1

Please sign in to comment.