Skip to content

Commit d7624c7

Browse files
authored
[5.x] Class "DB" not found issue (statamic#11911)
* fix: Class "DB" not found issue * fix: lint issue
1 parent 3ce4b1a commit d7624c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Auth/Eloquent/UserGroup.php

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

33
namespace Statamic\Auth\Eloquent;
44

5+
use Illuminate\Support\Facades\DB;
56
use Statamic\Auth\File\UserGroup as FileUserGroup;
67
use Statamic\Facades\User;
78

@@ -50,7 +51,7 @@ public function queryUsers()
5051

5152
protected function getUserIds()
5253
{
53-
return \DB::connection(config('statamic.users.database'))
54+
return DB::connection(config('statamic.users.database'))
5455
->table(config('statamic.users.tables.group_user', 'group_user'))
5556
->where('group_id', $this->id())
5657
->pluck('user_id');

0 commit comments

Comments
 (0)