F
Filamentβ€’15mo ago
neneone

Remove "Laravel" text from Login page

Hey guys, I'm using Filament's default Login page, and I don't understand how to remove the "Laravel" text that appears both on the page itself and the " - Laravel" string that gets appended to the page's title. I've tried overriding getHeading, getSubheading, getTitle etc. but I can't get any of this to work. Is this just intended behavior, or is there any easy way to change this? Thanks in advance πŸ™‚
7 Replies
neneone
neneoneOPβ€’15mo ago
Update: I now realized it is based on the environment variable APP_NAME. How can I change this? I don't want it to be dependant on an environment variable
Ilham Dimas Prayudha
Ilham Dimas Prayudhaβ€’15mo ago
The problem with this way is that will affect all Simple Page, not good if we just want to customize Login Page only
josef
josefβ€’15mo ago
then you have to change the login page template. Copy it to resources/views/vendor/... and change it however you want instead of showing the default logo
Ilham Dimas Prayudha
Ilham Dimas Prayudhaβ€’15mo ago
If you just want to remove logo/brand text, you can try overriding hasLogo() with return false in your login class I think it will be good if Filament have a function like getLogo or getBrand that return string | htmable | View to customize logo/brand
josef
josefβ€’15mo ago
But that wouldn't solve your problem, since it would change for all place where it's used, no? But feel free to create a PR with your enhancement
Ilham Dimas Prayudha
Ilham Dimas Prayudhaβ€’15mo ago
Of course not, it's like we can customize getHeading() in CustomLogin that extend filament Login class, so it will affect in Login Page only. And it's not my problem btw, i'm not the OP, i'm just trying to help too πŸ˜…
Want results from more Discord servers?
Add your server