Skip to content

Commit b8ba9d8

Browse files
committed
fix: properly retrieve and use user model
1 parent e0be320 commit b8ba9d8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Processors/AnonymizeUsers.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function tables(): array
1818
public function process(): void
1919
{
2020
/** @var Authenticatable|Model $user */
21-
foreach ($this->getUserModel()->query()->cursor() as $user) {
21+
foreach ($this->getUserModel()::query()->cursor() as $user) {
2222
$data = [];
2323

2424
/** @phpstan-ignore-next-line */
@@ -48,11 +48,9 @@ public function process(): void
4848
/**
4949
* Get the user model.
5050
*/
51-
protected function getUserModel(): Authenticatable|Model
51+
protected function getUserModel(): string
5252
{
53-
$model = config('auth.providers.users.model');
54-
55-
return app($model);
53+
return config('auth.providers.users.model');
5654
}
5755

5856
/**

0 commit comments

Comments
 (0)