jeffgreco13 / filament-breezy

MIT License
735 stars 131 forks source link

profile menu is not showing up after installing Filament Breezy on Laravel 11 #397

Open badrshs opened 1 week ago

badrshs commented 1 week ago

Environment

Steps Taken

  1. Installed Filament Breezy using Composer composer require jeffgreco13/filament-breezy
  2. Added BreezyCore to the AdminPanelProvider
  3. Install and Published Breezy configuration php artisan breezy:install php artisan vendor:publish --tag="filament-breezy-views"
  4. Ran migrations
  5. Cleared application cache and recompiled views

Current AdminPanelProvider Configuration


class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            ->login()
            ->colors([
                'primary' => Color::Amber,
            ])
            ->plugins([
                BreezyCore::make()
            ])
            ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
            ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
            ->pages([
                Pages\Dashboard::class,
            ])
            ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
            ->widgets([
                Widgets\AccountWidget::class,
            ])
            ->middleware([
                EncryptCookies::class,
                AddQueuedCookiesToResponse::class,
                StartSession::class,
                AuthenticateSession::class,
                ShareErrorsFromSession::class,
                VerifyCsrfToken::class,
                SubstituteBindings::class,
                DisableBladeIconComponents::class,
                DispatchServingFilamentEvent::class,
            ])
            ->authMiddleware([
                Authenticate::class,
            ]);
    }
}

Expected Behavior

The profile menu should be visible in the admin panel after logging in.

Actual Behavior

The profile menu is not showing up in the admin panel.

Question

Is there anything else I need to configure or check to make the profile menu appear? Are there any known compatibility issues with Laravel 11 or the latest Filament version?

khangphung-vl commented 4 days ago
->authMiddleware([
    Authenticate::class,
])
->plugin(BreezyCore::make()
    ->myProfile(shouldRegisterNavigation: true, navigationGroup: "Settings")
);

You have to at least register->myProfile (without parameters). Note that without parameters, you need to click on this part to access the profile page.

image