custom dashboard page header heading | add auth user name into the heading of a page
im looking to turn this:
into something like this:
but it doesn't work and haven't found a way to make it use the, currently authenticated user name. base class for Dashboard doesn't have a getHeading method. is it possible?
Solution:Jump to solution
Hi, you have the getHeading() function on Dashboard too :```php
class Dashboard extends \Filament\Pages\Dashboard
{
public function getHeading(): string | Htmlable
{...
5 Replies
Solution
Hi, you have the getHeading() function on Dashboard too :

Dashboard is a Page too. https://filamentmastery.com/articles/how-to-customize-page-titles-and-headings-in-filament-resources
Filament Mastery
How to customize page Titles and Headings in Filament Resources - F...
Learn how to set custom page titles and headings in Filament resource pages. Understand the difference and use model data.
thanks!
btw, there seems to be an issue with color on your "terms of service" @Julien B. (aka yebor974) will be checking it out for further assistance.
