Skip to content

Commit 183fe19

Browse files
authored
Merge pull request #36 from sander3/user-model-bugfix
Dynamic user model
2 parents 3859039 + 5cb31db commit 183fe19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/Commands/Cleanup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Soved\Laravel\Gdpr\Console\Commands;
44

5-
use App\User;
65
use Illuminate\Console\Command;
76
use Soved\Laravel\Gdpr\Jobs\Cleanup\CleanupJob;
87

@@ -41,7 +40,8 @@ public function handle()
4140
{
4241
$config = config('gdpr');
4342

44-
$users = User::all();
43+
$userModel = config('auth.providers.users.model');
44+
$users = $userModel::all();
4545

4646
$strategy = app($config['cleanup']['strategy']);
4747

0 commit comments

Comments
 (0)