put 2 values in to one Textinput

Ello, i have the terms and categories. but i wanted to make a option avaible so you can set the full domain in once
 public static function form(Form $form): Form
    {
        return $form->schema([
            Select::make('categories')
                ->multiple()
                ->options(fn (): array => Category::orderBy('id', 'asc')->pluck('name', 'id')->toArray())
                ->getSearchResultsUsing(fn (string $search): array => Category::where('name', 'like', "%{$search}%")->limit(50)->pluck('name', 'id')->toArray()),
            TagsInput::make('terms'),
            TextInput::make('fulldomain'),
        ]);
    }


So like terms '.' categories for example filament.com so it has the term and categorie but in one textinput
Solution
Already fixed it with a other solution 😄 I maked a extra string column and then in a other function seperated the string in to two variables and then worked my way
Was this page helpful?