From 264a405ea8f5d80696c93e22167468b23ee2b243 Mon Sep 17 00:00:00 2001 From: Curtis Delicata Date: Mon, 5 Oct 2020 21:13:48 +0100 Subject: [PATCH] Fix --- src/Tables/Builders/UserTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tables/Builders/UserTable.php b/src/Tables/Builders/UserTable.php index cedc1f77..af027472 100644 --- a/src/Tables/Builders/UserTable.php +++ b/src/Tables/Builders/UserTable.php @@ -30,7 +30,7 @@ public function query(): Builder ->join('user_groups', 'users.group_id', '=', 'user_groups.id') ->join('roles', 'users.role_id', '=', 'roles.id'); } else { - return User::where('id', $auth->id) + return User::where('user.id', $auth->id) ->with('person:id,appellative,name', 'avatar:id,user_id') ->selectRaw(' users.id, user_groups.name as "group", people.name, people.appellative,