Menu Builder Tool for Laravel Nova with placeholder and category.
dharmeshshah09/cannaconsole-laravel-nova-menu-builder is a Laravel package for menu builder tool for laravel nova with placeholder and category..
It currently has 0 GitHub stars and 124 downloads on Packagist (latest version V1.1).
Install it with composer require dharmeshshah09/cannaconsole-laravel-nova-menu-builder.
Discover more Laravel packages by dharmeshshah09
or browse all Laravel packages to compare alternatives.
Last updated
This tool allows you to create menus in Laravel Nova
You can install the package in to a Laravel app that uses Nova via composer:
composer require dharmeshshah09/cannaconsole-laravel-nova-menu-builder
Then you should publish the database table file and migrate it:
php artisan vendor:publish --tag=menu-builder-migration
php artisan migrate
Next up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.
// in app/Providers/NovaServiceProvider.php
// ...
public function tools()
{
return [
// ...
new \Infinety\MenuBuilder\MenuBuilder(),
];
}
There are three helpers built in for your blades
menu_builder('slug').
Creates an html menu for given slug. Extra options are not required. By default tags are ul and li, and without html classes.
{!! menu_builder('main') !!}
//or
{!! menu_builder('main', 'parent-class', 'child-class', 'dl', 'dd') !!}
menu_name('slug').
Returns the name of the menu for a given slug.
{{ menu_name('main') }}
menu_json('slug').
Returns a json with all items for given slug.
{!! menu_json('main') !!}
Set your translations in the corresponding xx.json file located in /resources/lang/vendor/nova
"Menu Builder": "Menu Builder",
"Menu Items": "Menu Items",
"Add item": "Add item",
"Delete item": "Delete item",
"Are you sure to delete this menu item?": "Are you sure to delete this menu item?",
"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.",
"Cancel": "Cancel",
"Yes, remove!": "Yes, remove!",
"Add Menu item": "Add Menu item",
"Name": "Name",
"Slug": "Slug",
"Menu Helper": "Menu Helper",
"Link type": "Link type",
"Choose an option": "Choose an option",
"Static Url": "Static Url",
"Dynamic Route": "Dynamic Route",
"URL": "URL",
"Route": "Route",
"Parameters": "Parameters",
"Open in": "Open in",
"Same window": "Same window",
"New window": "New window",
"Classes": "Classes",
"Create menu item": "Create menu item",
"Update menu item": "Update menu item",
"Item removed successfully!": "Item removed successfully!",
"Item created!": "Item created!",
"Item updated!": "Item updated!",
"Menu reordered!": "Menu reordered!",
"Error on server!": "Error on server!",
"Enabled": "Enabled",
"Disabled": "Disabled"
The MIT License (MIT). Please see License File for more information.