Open Maru-Yasa opened 3 months ago
Yes I would love this to but I do not believe the programmer set any option for this
Since everyone has to been careless to answer this I will since i finally found something that works (plus this answer would have saved me a decent amount of time). After you publish the assets for this package you may edit: resources/views/vendor/filament-breezy/filament/pages/my-profile.blade.php. This is the code that is working for me:
Since everyone has to been careless to answer this I will since i finally found something that works (plus this answer would have saved me a decent amount of time). After you publish the assets for this package you may edit: resources/views/vendor/filament-breezy/filament/pages/my-profile.blade.php. This is the code that is working for me:
x-filament::page @php self::$navigationIcon = 'healthicons-f-ui-user-profile'; // <----- THIS IS IT @endphp
@foreach ($this->getRegisteredMyProfileComponents() as $component) @unless(is_null($component)) @livewire($component) @endunless @Endforeach
</x-filament::page>
Well shit dang if you are not on the my profile page this code does not work :'( finding better solution now....
OK now I have the right answer which is not in the documentation at all! What I did was:
This worked well for me and costed me hours of work. I appreciate the package but it sucks when something so little cost so much time.
Oh hey guys please note: you will have to update the namespace on the file that you save as in Step 1 and 2 above to: namespace App\Filament\Pages;
Create New Page => App\Filament\Pages\MyProfileCustomPage.php
Then extend MyProfilePage from FilamentBreezy package.
Overide the icon as you need and you are Good to Go.
<?php
namespace App\Filament\Pages;
use Jeffgreco13\FilamentBreezy\Pages\MyProfilePage;
class MyProfileCustomPage extends MyProfilePage
{
protected static ?string $navigationIcon = 'heroicon-s-cog-6-tooth';
}
If you want to change the Profile icon:
app/Filament/Pages/MyProfileCustomPage.php
<?php
namespace App\Filament\Pages;
use Jeffgreco13\FilamentBreezy\Pages\MyProfilePage;
class MyProfileCustomPage extends MyProfilePage
{
protected static ?string $navigationIcon = 'heroicon-o-user';
}
customMyProfilePage
in app/Providers/Filament/AdminPanelProvider.php
in the plugin configurationBreezyCore::make()->myProfile(
shouldRegisterUserMenu: true,
shouldRegisterNavigation: true,
navigationGroup: 'Your Profile',
hasAvatars: true,
slug: 'profile'
)
->customMyProfilePage(\App\Filament\Pages\MyProfileCustomPage::class)
I can't figure out how to change navigation page icon