Skip to content

Commit 022b582

Browse files
authoredMay 21, 2024
Merge pull request #101 from lix-it/feature/alternative-cashier-model
Use Cashier Model config variable
2 parents f50b4bb + 78b9d76 commit 022b582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Http/Requests/RecordStripeEvent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function process()
3131
? $data['data']['previous_attributes']
3232
: [];
3333
$stripeCustomerId = $this->findStripeCustomerId($transaction);
34-
$authModel = config('auth.providers.users.model') ?? config('auth.model');
34+
$authModel = config('cashier.model') ?? config('auth.providers.users.model') ?? config('auth.model');
3535
$user = app($authModel)->where('stripe_id', $stripeCustomerId)->first();
3636

3737
if (! $user) {

0 commit comments

Comments
 (0)
Please sign in to comment.