Skip to content

Commit

Permalink
Check for model user class
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Sep 25, 2020
1 parent 2dcd036 commit 9024107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/cashier.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
|
*/

'model' => env('CASHIER_MODEL', App\User::class),
'model' => env('CASHIER_MODEL', class_exists(App\Models\User::class) ? App\Models\User::class : App\User::class),

/*
|--------------------------------------------------------------------------
Expand Down

1 comment on commit 9024107

@fylzero
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice solve! I like it.

Please sign in to comment.