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): FeatureJsonResource { $query = new Query($request->validated()); $show = $action->show($feature, $query, $request->schema()); return new FeatureJsonResource($show, $query); } public function update(UpdateRequest $request, Feature $feature, UpdateAction $action): FeatureJsonResource { $updated = $action->update($feature, $request->validated()); return new FeatureJsonResource($updated, new Query()); } }