New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Can't get CP routing to work

Martijn Lina January 7, 2020 by Martijn Lina


I'm trying to add a menu item to my own controller in the control panel. The routing to the addon works as expected: when i open the url directly i see my index page. However i can't seem to reference it using the route() method from the Nav::item. It keeps telling me the route is unknown. Also it doesn't appear in the php please route:list command.

What am i missing?

Thanks for your help :-)


Answered by Martijn Lina!
>>>>>>> Answered <<<<<<<
9 Replies