value . 'active_' . $facultyId, now()->addDay(), function () use ($facultyId) { return DepartmentPreviewResource::collection( Department::query() ->where('is_active', true) ->where('faculty_id', $facultyId) ->get() ); } ); } }