Render Hook for inserting livewire custom page into user menu?
I have several panels, and some pages are shared between panels, so I have the panel directories, and then I have a shared directory where all the pages/components live that are used in multiple panels.
I want to add a link to a user settings page, and since it will be shared, I want to put it in this shared directory. However, when I create a custom page class like I have with a lot of other use cases, and I use the
I can do this, I think, but just thinking there must be a better way.
userMenuItems
method on the panel provider, I get a route not defined error and I can't seem to get past it.
my custom page class:
2 questions:
first, am I doing something wrong that would allow me to just make this work the way it's laid out above? I don't know why I can't just link to whatever page I want to, whether it's in the panel or not (I'm guessing that's the problem).
With the other pages I have that are shared, I have a custom sidebar navigation where I'm creating the NavigationItem
s manually. This is the first time I've tried to put one of these in the user menu.
second, if the above isn't going to work, is there a way to maybe use a renderhook to put a link in my user menu.I can do this, I think, but just thinking there must be a better way.
3 Replies
Does the route appear when you run: ?
no it doesn't. I would've thought that adding the
$slug
attribute would make it create a route. At least I think that's how it works, but regardless, it's not any different than my other classes so I don't understand why it's not creating the route.try to clear laravel + filament caches
and see if it shows on route list