{"action":"created","issue":{"url":"https://api.github.com/repos/lavary/laravel-menu/issues/79","labels_url":"https://api.github.com/repos/lavary/laravel-menu/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/lavary/laravel-menu/issues/79/comments","events_url":"https://api.github.com/repos/lavary/laravel-menu/issues/79/events","html_url":"https://github.com/lavary/laravel-menu/issues/79","id":108630544,"number":79,"title":"ErrorException in FileViewFinder.php line 112: No hint path defined for [laravel-menu]","user":{"login":"brainless81","id":544502,"avatar_url":"https://avatars.githubusercontent.com/u/544502?v=3","gravatar_id":"","url":"https://api.github.com/users/brainless81","html_url":"https://github.com/brainless81","followers_url":"https://api.github.com/users/brainless81/followers","following_url":"https://api.github.com/users/brainless81/following{/other_user}","gists_url":"https://api.github.com/users/brainless81/gists{/gist_id}","starred_url":"https://api.github.com/users/brainless81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainless81/subscriptions","organizations_url":"https://api.github.com/users/brainless81/orgs","repos_url":"https://api.github.com/users/brainless81/repos","events_url":"https://api.github.com/users/brainless81/events{/privacy}","received_events_url":"https://api.github.com/users/brainless81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lavary/laravel-menu/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-28T10:35:59Z","updated_at":"2015-09-29T16:28:45Z","closed_at":null,"body":"Just trying to include your library using ViewComposer archtecture of Laravel 5.1.\r\n\r\n    public function compose(View $view)\r\n    {\r\n        $this->menu->make('navigation', function(Builder $menu){\r\n            $menu->add('Home');\r\n            $menu->add('About',    'about');\r\n            $menu->add('services', 'services');\r\n            $menu->add('Contact',  'contact');\r\n        });\r\n    }\r\n\r\nI vendor published the files but cannot load the view via\r\n\r\n@include(config('laravel-menu.views.bootstrap-items'), array('items' => $navigation->roots()))\r\n\r\nin my blade template. It results in:\r\n\r\nErrorException in FileViewFinder.php line 112: No hint path defined for [laravel-menu]."},"comment":{"url":"https://api.github.com/repos/lavary/laravel-menu/issues/comments/144111926","html_url":"https://github.com/lavary/laravel-menu/issues/79#issuecomment-144111926","issue_url":"https://api.github.com/repos/lavary/laravel-menu/issues/79","id":144111926,"user":{"login":"dustingraham","id":1414400,"avatar_url":"https://avatars.githubusercontent.com/u/1414400?v=3","gravatar_id":"","url":"https://api.github.com/users/dustingraham","html_url":"https://github.com/dustingraham","followers_url":"https://api.github.com/users/dustingraham/followers","following_url":"https://api.github.com/users/dustingraham/following{/other_user}","gists_url":"https://api.github.com/users/dustingraham/gists{/gist_id}","starred_url":"https://api.github.com/users/dustingraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustingraham/subscriptions","organizations_url":"https://api.github.com/users/dustingraham/orgs","repos_url":"https://api.github.com/users/dustingraham/repos","events_url":"https://api.github.com/users/dustingraham/events{/privacy}","received_events_url":"https://api.github.com/users/dustingraham/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T16:28:45Z","updated_at":"2015-09-29T16:28:45Z","body":"I just skimmed through the latest readme.md file, and it looks like there might be some conflicting examples. I see that config('...') in the examples similar to what you have done. I'll have to look at it closer later. I havn't seen it done that way before. Essentially you're just including a view, and passing some data.\r\n\r\nYou need to point that include at a view file you have that can render the view.\r\n\r\nIt should be something along the lines of:\r\n\r\n     @include('layouts.menu-items', array('items' => $navigation->roots()))\r\n\r\nWhere you have `views/layouts/menu-items.blade.php` that would render the view. This is the advanced usage, which is what I use since I need to add a bunch of custom markup for each menu item.\r\n\r\nHowever, it would be easier during testing to simply use `{!! Menu::get('navigation')->asUl() !!}` or `{!! $navigation->asUl() !!}` which should spit out your menu.\r\n\r\nIf that works and you want a custom view, just know you don't need the config('...') part, you just need to point at a real view file with the markup you want to use to display the menu."}}