© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Davide Cariola

Get record values in Livewire component with Filament Table

Hello everyone. I have inserted a Filament table inside a Livewire component.

One of the fields is of type TextInputColumn, but I would like the same to have the disabled() option at a certain condition, which though depends on the value of the selected record.

Can this be done? Unfortunately, I could not find any details about it.

Here's my code and my idea:
TextInputColumn::make('name')
    ->label('Nome del ruolo')
    ->searchable()
    ->disabled(
        ! auth()->role->checkPermission('ruoli-modifica-ruolo-' . $record->slug)
    ),
TextInputColumn::make('name')
    ->label('Nome del ruolo')
    ->searchable()
    ->disabled(
        ! auth()->role->checkPermission('ruoli-modifica-ruolo-' . $record->slug)
    ),

Obviously, for now
$record->slug
$record->slug
returns an error.
Thank you!
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

Get Table Record in Livewire Component
FilamentFFilament / ❓┊help
16mo ago
Filament table in Livewire component!
FilamentFFilament / ❓┊help
2y ago
Filament table in Modal - livewire component
FilamentFFilament / ❓┊help
2y ago
Filament table in livewire
FilamentFFilament / ❓┊help
3y ago