FilamentF
Filament15mo ago
pace

It's possible change the "default title" for all tabs?

Currently filament show the (of the tab) title using this code in layout/base.blade.php:

 @php
            $title = trim(strip_tags(($livewire ?? null)?->getTitle() ?? ''));
            $brandName = trim(strip_tags(filament()->getBrandName()));
 @endphp

        <title>
            {{ filled($title) ? "{$title} - " : null }} {{ $brandName }}
        </title>


But I need to change that and show the brandname before:

{{ $brandName }} - {{ filled($title) ? "{$title} " : null }} 



How can I change ( in a safe way ) this file? I can create some view to override? Or have another solution? But I don't think override the base file is a good idea.
Was this page helpful?