No more custom actions for table records on view page?

So i have a relationmanager with this table
public function table(Table $table): Table
{
return $table
->recordTitleAttribute('id')
->columns([
TextColumn::make('external_id')
->label('ID'),
TextColumn::make('username')
->searchable(),
TextColumn::make('total_wager')
->money(),
IconColumn::make('active')
->icon(fn (string $state): string => match ($state) {
'1' => 'heroicon-o-check-circle',
default => 'heroicon-o-no-symbol',
})
->color(fn (string $state): string => match ($state) {
'1' => 'success',
default => 'danger',
}),
TextColumn::make('user.username')
->label('Site Username')
->searchable(),
])
->filters([
//
])
->headerActions([
//
])
->recordActions([
Action::make('test')
])
->toolbarActions([
//
]);
}
public function table(Table $table): Table
{
return $table
->recordTitleAttribute('id')
->columns([
TextColumn::make('external_id')
->label('ID'),
TextColumn::make('username')
->searchable(),
TextColumn::make('total_wager')
->money(),
IconColumn::make('active')
->icon(fn (string $state): string => match ($state) {
'1' => 'heroicon-o-check-circle',
default => 'heroicon-o-no-symbol',
})
->color(fn (string $state): string => match ($state) {
'1' => 'success',
default => 'danger',
}),
TextColumn::make('user.username')
->label('Site Username')
->searchable(),
])
->filters([
//
])
->headerActions([
//
])
->recordActions([
Action::make('test')
])
->toolbarActions([
//
]);
}
For some reason the "Test" action is not showing on the view page but it is when i go to the edit page. Is it not possible anymore to show custom actions on the view page for every record? I know in the previous versions this was possible. If anyone could help with this that would be nice.
2 Replies

Did you find this page helpful?