diff --git a/app/Http/Controllers/KeysController.php b/app/Http/Controllers/KeysController.php index b85e4aba..3d281fa3 100644 --- a/app/Http/Controllers/KeysController.php +++ b/app/Http/Controllers/KeysController.php @@ -25,9 +25,10 @@ public function index(Request $request): Response { $authUser = $request->user(); $keys = Key::query() - ->where(fn(Builder $query): Builder => $query - ->whereRelation("user", fn(Builder $query): Builder => $query->withTrashed($authUser->canSeeInactiveUsers())) - ->orWhereNull("user_id") + ->where( + fn(Builder $query): Builder => $query + ->whereRelation("user", fn(Builder $query): Builder => $query->withTrashed($authUser->canSeeInactiveUsers())) + ->orWhereNull("user_id"), ) ->with("user") ->get()