We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0be320 commit b8ba9d8Copy full SHA for b8ba9d8
src/Processors/AnonymizeUsers.php
@@ -18,7 +18,7 @@ public function tables(): array
18
public function process(): void
19
{
20
/** @var Authenticatable|Model $user */
21
- foreach ($this->getUserModel()->query()->cursor() as $user) {
+ foreach ($this->getUserModel()::query()->cursor() as $user) {
22
$data = [];
23
24
/** @phpstan-ignore-next-line */
@@ -48,11 +48,9 @@ public function process(): void
48
/**
49
* Get the user model.
50
*/
51
- protected function getUserModel(): Authenticatable|Model
+ protected function getUserModel(): string
52
53
- $model = config('auth.providers.users.model');
54
-
55
- return app($model);
+ return config('auth.providers.users.model');
56
}
57
58
0 commit comments