model ->with(['osVersions.osGroup', 'category']) ->where('is_active', 1) ->orderBy('sort_order', 'asc') ->get(); } public function findActiveBySlug(string $slug) { return $this->model ->with(['osVersions.osGroup', 'category', 'pricings' => fn ($q) => $q->where('is_active', 1)]) ->where('slug', $slug) ->where('is_active', 1) ->first(); } }