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

[Bug]: Route Errors #60

Open
JDebono2023 opened this issue Dec 17, 2024 · 0 comments
Open

[Bug]: Route Errors #60

JDebono2023 opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JDebono2023
Copy link

What happened?

Durig inital setup, the plug in doesn't appear in the main sidebar menu. When I added the menu item option, it returns this eror: Route [filament.workout-planner.pages.edit-profile-page] not defined.

How to reproduce the bug

Install the plugin via: composer require joaopaulolndev/filament-edit-profile.

Add in the plugin to the Panel Provider: use Joaopaulolndev\FilamentEditProfile\FilamentEditProfilePlugin;
....
->plugins([
FilamentEditProfilePlugin::make()
])
.....

Add in the user menu to the Panel Provider:
->userMenuItems([
'profile' => MenuItem::make()
->label(fn() => auth()->user()->name)
->url(fn (): string => EditProfilePage::getUrl())
->icon('heroicon-m-user-circle')
//If you are using tenancy need to check with the visible method where ->company() is the relation between the user and //tenancy model as you called
//->visible(function (): bool {
// return auth()->user()->company()->exists();
//}),
])

Package Version

1.0.33

PHP Version

8.2

Laravel Version

11.31

Which operating systems does with happen with?

Windows

Notes

Filament 3.2. Publishing the views had no effect.

@JDebono2023 JDebono2023 added the bug Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant