© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
18 replies
MRBUG

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)
->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()
    ])
 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()
    ])
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

clickable area for filtering relation
FilamentFFilament / ❓┊help
3y ago
Form relation state
FilamentFFilament / ❓┊help
16mo ago
Relation manager form
FilamentFFilament / ❓┊help
2y ago
Nested relation form
FilamentFFilament / ❓┊help
2y ago