Skip to content

Commit

Permalink
Merge pull request #30 from vc-vinay/main
Browse files Browse the repository at this point in the history
Fix issue #29: hardcoded App\Models\User
  • Loading branch information
ruchit288 authored Mar 15, 2024
2 parents 82c4600 + b349875 commit 238c392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Recorders/PulseActiveSessionRecorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function record(SharedBeat $event): void
if (!empty(config('auth.guards.sanctum'))) {
$apiDriver = config('auth.guards.sanctum.driver', $apiDriver);
}

$userClass = new ReflectionClass(User::class);
$userClass = new ReflectionClass(config('auth.providers.users.model', User::class));
$traits = $userClass->getTraitNames();

$apiDriver = in_array(\Laravel\Passport\HasApiTokens::class, $traits) ? 'passport' :
Expand Down

0 comments on commit 238c392

Please sign in to comment.