*/ class ExternalEntryController extends BaseController { final public const ROUTE_SLUG = 'id'; /** * Apply the query builder to the index query. * * @param Builder $builder * @param array $args * @return Builder */ public function index(Builder $builder, mixed $value, mixed $root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): Builder { /** @var ExternalProfile $profile */ $profile = Arr::get($args, 'profile'); $builder->where(ExternalEntry::ATTRIBUTE_PROFILE, $profile->getKey()); return $builder; } }