title page
I tried to adjust the title of my page from the default that would be the name of the model
25 Replies
each page has a $title
your IDE will tell you if a property exists or not
if its not there, its wrong. please dont try guessing APIs
I'm trying to change the title of the PanelProvider with protected static ?string $title = 'Finance dashboard'; and it doesn't work.
Yeah, this doesnt really help us
What is your code?
Sorry... give me five
mins
I cloned the demo project
add the $title
Title is still the same
what I'm doing wrong?
Thats not how you change the title
You use
->brandName()
@PabloZagni
Also, the panel provider isnt a page. Thats why you cant change it with $titleThanks for you time Matthew
There are so many objects, I'm trying to understand the whole ecosystem... and how it works
As I read this, I tryed to change the panel's title...
Noo haha, by Dashboard it means the title of the dashboard page
Now I see it!!
The thing on the top left is the brand name. The way I showed you with
->brandName()
is the way you change from filament BUT you can also change it from the .env file by editing the APP_NAME
variable
So 2 ways in general
You're welcome π
Can you mark my answer as the solution so others can see it?As soon I make it work... I'm trying
I need to change this ones
Ohhhh, well now you are giving me more context.
So to do that you will need to create a new Dashboard page as described here:
@zakrom should mark it as answered
And then in that new file you would need to add the $title to change it
, create a new file at app/Filament/Pages/Dashboard.php:
to change 1) protected static ?string $navigationLabel = 'Custom Navigation Label';
to change 2) protected static ?string $title = 'Custom Page Title';
Yes! this worked charm!!!
You rock dude π
you're welcome π