{"id":22899666,"url":"https://github.com/infinetyes/nova-menu-builder","last_synced_at":"2025-05-07T04:10:38.600Z","repository":{"id":56032380,"uuid":"164419118","full_name":"InfinetyEs/Nova-Menu-Builder","owner":"InfinetyEs","description":"A Menu Builder for Laravel Nova","archived":false,"fork":false,"pushed_at":"2021-02-11T01:50:12.000Z","size":159,"stargazers_count":66,"open_issues_count":8,"forks_count":25,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-28T05:18:55.449Z","etag":null,"topics":["builder","laravel","laravelnova","menu","nova"],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InfinetyEs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-07T10:55:33.000Z","updated_at":"2025-01-13T21:55:29.000Z","dependencies_parsed_at":"2022-08-15T11:50:30.119Z","dependency_job_id":null,"html_url":"https://github.com/InfinetyEs/Nova-Menu-Builder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinetyEs%2FNova-Menu-Builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinetyEs%2FNova-Menu-Builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinetyEs%2FNova-Menu-Builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinetyEs%2FNova-Menu-Builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfinetyEs","download_url":"https://codeload.github.com/InfinetyEs/Nova-Menu-Builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810273,"owners_count":21807759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["builder","laravel","laravelnova","menu","nova"],"created_at":"2024-12-14T01:15:26.930Z","updated_at":"2025-05-07T04:10:38.577Z","avatar_url":"https://github.com/InfinetyEs.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nova Menu Builder\n\nThis tool allows you to create menus in Laravel Nova\n\n\u003cimg width=\"1439\" alt=\"menu builder Home\" src=\"https://user-images.githubusercontent.com/42798230/50765532-7632ea80-1276-11e9-8fed-ec1f6d53983a.png\"\u003e\n\n\u003cimg width=\"1439\" alt=\"Menu Builder Items\" src=\"https://user-images.githubusercontent.com/42798230/50765390-06bcfb00-1276-11e9-9e82-fd7956507c78.png\"\u003e\n\n## Installation\n\nYou can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:\n\n```bash\ncomposer require infinety-es/nova-menu-builder\n```\n\nThen you should publish the database table file and migrate it:\n\n```bash\nphp artisan vendor:publish --tag=menu-builder-migration\nphp artisan migrate\n```\n\n## Usage\n\nNext up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.\n\n```php\n// in app/Providers/NovaServiceProvider.php\n\n// ...\n\npublic function tools()\n{\n    return [\n        // ...\n        new \\Infinety\\MenuBuilder\\MenuBuilder(),\n    ];\n}\n```\n\n## Helpers\n\nThere are three helpers built in for your blades\n\n-   **menu_builder('slug')**.\n\n        \tCreates an html menu for given slug. Extra options are not required. By default tags are `ul` and `li`, and without html classes.\n\n```php\n{!! menu_builder('main') !!}\n\n//or\n\n{!! menu_builder('main', 'parent-class', 'child-class', 'dl', 'dd') !!}\n```\n\n-   **menu_name('slug')**.\n\n        \tReturns the name of the menu for a given slug.\n\n```php\n{{ menu_name('main') }}\n```\n\n-   **menu_json('slug')**.\n\n        \tReturns a json with all items for given slug.\n\n```php\n{!! menu_json('main') !!}\n```\n\n## Example using blade.\n\n```blade\n@foreach (getMenuBySlug('header')-\u003eparentItems as $menuItem)\n    @include('menu-builder::menu-item', [\n      'menu' =\u003e $menuItem,\n      'active_top_class' =\u003e 'active',\n      'active_child_class' =\u003e 'active',\n    ])\n@endforeach\n```\n\n## Localization\n\nSet your translations in the corresponding xx.json file located in /resources/lang/vendor/nova\n\n```json\n\"Menu Builder\": \"Menu Builder\",\n\"Menu Items\": \"Menu Items\",\n\"Add item\": \"Add item\",\n\"Delete item\": \"Delete item\",\n\"Are you sure to delete this menu item?\": \"Are you sure to delete this menu item?\",\n\"Take care. All children items will be deleted cause you're deleting the parent.\": \"Take care. All children items will be deleted cause you're deleting the parent.\",\n\"Cancel\": \"Cancel\",\n\"Yes, remove!\": \"Yes, remove!\",\n\"Add Menu item\": \"Add Menu item\",\n\"Name\": \"Name\",\n\"Slug\": \"Slug\",\n\"Menu Helper\": \"Menu Helper\",\n\"Link type\": \"Link type\",\n\"Choose an option\": \"Choose an option\",\n\"Static Url\": \"Static Url\",\n\"Dynamic Route\": \"Dynamic Route\",\n\"URL\": \"URL\",\n\"Route\": \"Route\",\n\"Parameters\": \"Parameters\",\n\"Open in\": \"Open in\",\n\"Same window\": \"Same window\",\n\"New window\": \"New window\",\n\"Classes\": \"Classes\",\n\"Create menu item\": \"Create menu item\",\n\"Update menu item\": \"Update menu item\",\n\"Item removed successfully!\": \"Item removed successfully!\",\n\"Item created!\": \"Item created!\",\n\"Item updated!\": \"Item updated!\",\n\"Menu reordered!\": \"Menu reordered!\",\n\"Error on server!\": \"Error on server!\",\n\"Enabled\": \"Enabled\",\n\"Disabled\": \"Disabled\"\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email apps@infinety.es instead of using the issue tracker.\n\n## Postcardware\n\nYou're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.\n\nOur address is: Infinety - Calle Comedias, 8 Floor 3, Suite 5 46003 Valencia (Spain).\n\n## Credits\n\n-   [Eric Lagarda](https://github.com/Krato)\n-   [Ralph Huwiler (vue-nestable)](https://github.com/rhwilr/vue-nestable)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinetyes%2Fnova-menu-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinetyes%2Fnova-menu-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinetyes%2Fnova-menu-builder/lists"}