validated()); $builder = Feature::query()->where(Feature::ATTRIBUTE_SCOPE, FeatureConstants::NULL_SCOPE); $features = $action->index($builder, $query, $request->schema()); return new FeatureCollection($features, $query); } public function show(ShowRequest $request, Feature $feature, ShowAction $action): FeatureResource { $query = new Query($request->validated()); $show = $action->show($feature, $query, $request->schema()); return new FeatureResource($show, $query); } public function update(UpdateRequest $request, Feature $feature, UpdateAction $action): FeatureResource { $updated = $action->update($feature, $request->validated()); return new FeatureResource($updated, new Query()); } }