update: allow users to be part of multiple internal groups

This commit is contained in:
Roardom
2024-02-23 23:26:23 +00:00
parent 9dd1e5d0ee
commit c3c95c2d41
15 changed files with 424 additions and 38 deletions
+3 -1
View File
@@ -65,7 +65,9 @@ class PageController extends Controller
{
return view('page.internal', [
'internals' => Internal::query()
->with('users.group')
->with([
'users' => fn ($query) => $query->with('group')->orderByPivot('position', 'asc'),
])
->orderBy('name')
->get(),
]);