© 2026 Hedgehog Software, LLC

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

AttachAction::make()

I have a MySQL table like this

id - source_model - related_module - related_model

in my Model i have a BelongsToMany like this

public function candidates(): BelongsToMany
{
return $this->BelongsToMany(Candidates::class, 'proposal_relations', 'source_model', 'related_model');
}

Tables\Actions\AttachAction::make()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('related_module')->required(),
])->preloadRecordSelect()

now i want the value from the textinput 'related_module' stored in the tabele row 'related_module'
please help......
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Costumize AttachAction
FilamentFFilament / ❓┊help
2y ago
AttachAction title
FilamentFFilament / ❓┊help
3y ago
Custom AttachAction
FilamentFFilament / ❓┊help
3y ago
AttachAction - MutateBeforeSave?
FilamentFFilament / ❓┊help
3y ago