© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Archy

Record title on deleted records

I'm looking for a way, to easily show the user, that they are viewing a deleted record.

Currently the user has no way of knowing this when they're on the records View page. The actions to force delete or restore users are only available to admins in our app.

I know I can simply create a field and display that on the ViewPage. But it would be preferred if the information is the very first thing they see, when visiting the deleted records page. Preferably append "(deleted)" or something like that to the record title attribute?
Solution
I guess you could do something like this:

public function getTitle(): string|Htmlable
{
    return parent::getTitle() . ($this->record->trashed() ? ' (Deleted)' : '');
}
public function getTitle(): string|Htmlable
{
    return parent::getTitle() . ($this->record->trashed() ? ' (Deleted)' : '');
}
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Customize Record Title
FilamentFFilament / ❓┊help
3y ago
unique validation on soft-deleted records
FilamentFFilament / ❓┊help
3y ago
Record title in breadcrumb
FilamentFFilament / ❓┊help
3y ago