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)
    ),

Obviously, for now $record->slug returns an error.
Thank you!
Was this page helpful?