Closed illuminate3 closed 9 years ago
No no, you got it kinda backwards!
Your second example is correct; your first example should be:
$menu->add('HR', 'school');
$menu->hr->add('Employees', 'employees');
It's going off the name of the menu item (in lower case form) - not the route/URL.
Thanks!
Here"s part of the menu I'm building.
This will error out with
However this works
I could figure out why this was Happening until I realized that the Route and Link name have to be the same.
Is this a bug?