All Projects → InfinetyEs → Nova-Menu-Builder

InfinetyEs / Nova-Menu-Builder

Licence: MIT license
A Menu Builder for Laravel Nova

Programming Languages

Vue
7211 projects
PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Nova-Menu-Builder

Nova-Dark-Theme
A dark theme for Laravel Nova
Stars: ✭ 72 (+14.29%)
Mutual labels:  nova, laravelnova
lazeemenu
Multi-level sidebar menu - JQuery plugin
Stars: ✭ 40 (-36.51%)
Mutual labels:  menu
keypirinha-theme-builder
A tool to create themes for Keypirinha launcher
Stars: ✭ 25 (-60.32%)
Mutual labels:  builder
navbar.js
Modern Navigation Component
Stars: ✭ 47 (-25.4%)
Mutual labels:  menu
go-telegram-flow
Go Telegram Flow is a set of tools that may assist bot developers
Stars: ✭ 28 (-55.56%)
Mutual labels:  menu
jam-stack-box
Your own self hosted continuous deployment solution for JAM Stack websites.
Stars: ✭ 25 (-60.32%)
Mutual labels:  builder
ECSEntityBuilder
Unity ECS Entity Builder/Wrapper
Stars: ✭ 39 (-38.1%)
Mutual labels:  builder
TemmieWebhook
ARCHIVED - Please use https://github.com/MinnDevelopment/discord-webhooks/ instead!! | A simple Discord Webhook API made in Java
Stars: ✭ 38 (-39.68%)
Mutual labels:  builder
unity circle menu
Circle Menu is a C# script used in Unity to quickly and easily create GUI circular menus, a great way to add intuitive and ergonomic menus to your applications and games.
Stars: ✭ 44 (-30.16%)
Mutual labels:  menu
nova-horizon-stats
Nova cards for Laravel applications that use Laravel Horizon
Stars: ✭ 31 (-50.79%)
Mutual labels:  nova
guillotine
Guillotine is a gnome extension designed for efficiently carrying out executions of commands from a customizable menu. Simply speaking: it is a highly customizable menu that enables you to launch commands and toggle services.
Stars: ✭ 28 (-55.56%)
Mutual labels:  menu
elemento
Builder API and other goodies for Elemental2
Stars: ✭ 90 (+42.86%)
Mutual labels:  builder
ngx-env
Easily inject environment variables into your Angular applications
Stars: ✭ 73 (+15.87%)
Mutual labels:  builder
laravel-nova-nested-form
This package allows you to include your nested relationships' forms into a parent form.
Stars: ✭ 225 (+257.14%)
Mutual labels:  nova
nova-rtl-theme
RTL layout for Laravel Nova.
Stars: ✭ 38 (-39.68%)
Mutual labels:  nova
apporder
Nextcloud app to enable sorting inside the app menu
Stars: ✭ 30 (-52.38%)
Mutual labels:  menu
ElDewrito-Menu
Possible replacement for Halo Online's UI heavily based on Halo: Reach
Stars: ✭ 22 (-65.08%)
Mutual labels:  menu
selectr
✅ The coolest jQuery select plugin you've never seen
Stars: ✭ 19 (-69.84%)
Mutual labels:  menu
PopOverAlert
PopOverAlert is a PopOver style alert view.
Stars: ✭ 56 (-11.11%)
Mutual labels:  menu
nova-url-field
A URL input and link field for Laravel Nova
Stars: ✭ 96 (+52.38%)
Mutual labels:  nova

Nova Menu Builder

This tool allows you to create menus in Laravel Nova

menu builder Home

Menu Builder Items

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require infinety-es/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

Usage

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(),
    ];
}

Helpers

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') !!}

Example using blade.

@foreach (getMenuBySlug('header')->parentItems as $menuItem)
    @include('menu-builder::menu-item', [
      'menu' => $menuItem,
      'active_top_class' => 'active',
      'active_child_class' => 'active',
    ])
@endforeach

Localization

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"

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Postcardware

You'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.

Our address is: Infinety - Calle Comedias, 8 Floor 3, Suite 5 46003 Valencia (Spain).

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].