{"action":"opened","issue":{"url":"https://api.github.com/repos/spatie/laravel-menu/issues/39","repository_url":"https://api.github.com/repos/spatie/laravel-menu","labels_url":"https://api.github.com/repos/spatie/laravel-menu/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-menu/issues/39/comments","events_url":"https://api.github.com/repos/spatie/laravel-menu/issues/39/events","html_url":"https://github.com/spatie/laravel-menu/issues/39","id":203999313,"number":39,"title":"Adding a class to each li","user":{"login":"bbashy","id":1149200,"avatar_url":"https://avatars.githubusercontent.com/u/1149200?v=3","gravatar_id":"","url":"https://api.github.com/users/bbashy","html_url":"https://github.com/bbashy","followers_url":"https://api.github.com/users/bbashy/followers","following_url":"https://api.github.com/users/bbashy/following{/other_user}","gists_url":"https://api.github.com/users/bbashy/gists{/gist_id}","starred_url":"https://api.github.com/users/bbashy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbashy/subscriptions","organizations_url":"https://api.github.com/users/bbashy/orgs","repos_url":"https://api.github.com/users/bbashy/repos","events_url":"https://api.github.com/users/bbashy/events{/privacy}","received_events_url":"https://api.github.com/users/bbashy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-30T12:37:28Z","updated_at":"2017-01-30T12:37:28Z","closed_at":null,"body":"Hi,\r\n\r\nI've looked through the docs and seen how to add classes to the ul and the a but not the li.\r\n\r\nBootstrap has nav-item on the li and I can't seem to work out how to add that within the `->route()` items.\r\n\r\n```\r\nMenu::macro('main', function() {\r\n    $menu = Menu::new()\r\n        ->addClass('navbar-nav mr-auto')\r\n        ->addItemClass('nav-link')\r\n        ->route('candidates.index', 'Candidates')\r\n        ->route('requisitions.index', 'Requisitions')\r\n        ->route('accounts.index', 'Accounts')\r\n        ->route('contacts.index', 'Contacts')\r\n        ->setActiveFromRequest()\r\n        ;\r\n\r\n    return $menu;\r\n});\r\n```\r\nWhich generates\r\n```\r\n<ul class=\"navbar-nav mr-auto\">\r\n    <li>\r\n        <a href=\"https://domain.dev/candidates\" class=\"nav-link\">Candidates</a>\r\n    </li>\r\n    <li class=\"active\">\r\n        <a href=\"https://domain.dev/requisitions\" class=\"nav-link\">Requisitions</a>\r\n    </li>\r\n    <li>\r\n        <a href=\"https://domain.dev/accounts\" class=\"nav-link\">Accounts</a>\r\n    </li>\r\n    <li>\r\n        <a href=\"https://domain.dev/contacts\" class=\"nav-link\">Contacts</a>\r\n    </li>\r\n</ul>\r\n```\r\nbut I need this on each item\r\n```\r\n<li class=\"nav-item\">\r\n```\r\n\r\nThanks!"}}
{"actor":{"display_login":"bbashy"}}