adding UserDetailObserver and reorderable records feature

This commit is contained in:
F4ilji
2025-05-13 15:01:03 +05:00
parent c3c468c11a
commit 0314febda2
14 changed files with 165 additions and 273 deletions
@@ -61,7 +61,11 @@ class ClientFacultyController extends Controller
function () use ($slug) {
return Faculty::where('slug', $slug)
->where('is_active', true)
->with(['departments.faculty', 'workers', 'seo'])
->with(['departments.faculty',
'workers' => fn ($query) => $query->orderBy('sort', 'asc'),
'workers.userDetail',
'seo'
])
->firstOrFail();
}
);