$options = Product::select('name')->distinct()->get()->pluck('name','name');
->createOptionForm([ Forms\Components\TextInput::make('name') ->required(), ])->createOptionUsing(function ($data) use ($options) { $options->push($data["name"]); return $options->last(); })