Relation on text area form?

i have a text area which is getting the relation from message model and i am currently in direct message modal so how can i get the data in our form and edit the message i created the form but i am getting the i of the message how can i do that ?
Tables\Columns\TextColumn::make('message.content')
->sortable()
->toggleable(isToggledHiddenByDefault: false)
->searchable()
->label('Message Content')->limit(50),
image.png
Solution
You can, just specify with
->model(Event::class)
like

 Select::make('event_type_id')
    ->model(Event::class)
    ->relationship('type', 'name')
    ->searchable()
    ->editOptionForm([
        TextInput::make('name')
            ->label('Name')
            ->required()
            ->rules('required'),
        TextInput::make('color')
            ->label('Color')
            ->type('color')
            ->required()
    ])
Was this page helpful?
Relation on text area form? - Filament