Certainly! In Filament (which Laracasts forum questions like this usually target), when you view a record in a relation manager (using the record's Infolist), the page title is typically set automatically and built like:
View {recordTitleAttribute}
If you want just the record title attribute in the page heading (e.g., show only the date instead of "View 2026-03-26"), you have two main options:
Option 1: Override the viewLabel() method
In your Filament resource's RelationManager class, you can override the viewLabel() method to just return an empty string. This will remove the "View" prefix, and typically leave just the record title as the heading.
public static function viewLabel(): string
{
return '';
}
If you still see a trailing space or dash, you can also try overriding the getTitle() method:
public function getTitle(): string
{
return $this->getRecordTitle();
}
Option 2: Customize the View Page
If you need even more customization, you can publish the Filament views and adjust the view manually, but for most use cases, Option 1 above is cleanest and recommended.
Summary
In your RelationManager class, add:
public static function viewLabel(): string
{
return '';
}
or, if needed:
public function getTitle(): string
{
return $this->getRecordTitle();
}
Result:
Now, when viewing the record, the page heading should display just the record title attribute, e.g., "2026-03-26".
References:
Let me know if you need clarification for a specific Filament version!