Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
badrshs opened this issue Sep 23, 2024 · 1 comment

Comments

@badrshs
Copy link

badrshs commented Sep 23, 2024

Environment

  • Laravel version: 11
  • Filament version: 3
  • Filament Breezy version: ^2.4

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
Copy link

->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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants