PHPackages                             novius/laravel-nova-menu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. novius/laravel-nova-menu

ActiveLibrary

novius/laravel-nova-menu
========================

A Nova resource tool to manage menus in your application.

8.1.2(2mo ago)916.6k↓40.6%8AGPL-3.0-or-laterPHPPHP ^8.2CI passing

Since Sep 4Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/novius/laravel-nova-menu)[ Packagist](https://packagist.org/packages/novius/laravel-nova-menu)[ RSS](/packages/novius-laravel-nova-menu/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (41)Used By (0)

Nova menu manager
=================

[](#nova-menu-manager)

[![Travis](https://camo.githubusercontent.com/ce42a07c4db6ac486b791ca59b1f312ad11c8d1bdd80b440ece28db9649402b7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6f766975732f6c61726176656c2d6e6f76612d6d656e752e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://travis-ci.org/novius/laravel-nova-menu)[![Packagist Release](https://camo.githubusercontent.com/5121ffe90d520f539705facfacb09134ffe6086fd50ffaf21d748764e7d0e54e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f766975732f6c61726176656c2d6e6f76612d6d656e752e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://packagist.org/packages/novius/laravel-nova-menu)[![Licence](https://camo.githubusercontent.com/ac50f939f4af90609a010cbf232d8751005537f0e102010204f2ceaeef56ada3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f766975732f6c61726176656c2d6e6f76612d6d656e752e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://github.com/novius/laravel-nova-menu#licence)

A Nova tool to manage menus.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel Nova &gt;= 4.0
- Laravel Framework &gt;= 9.0 | &gt;= 10.0 | &gt;= 11.0

> **NOTE**: These instructions are for Laravel &gt;= 9.0 and Laravel Nova 4.0. If you are using prior version, please see the [previous version's docs](https://github.com/novius/laravel-nova-menu/tree/3-x).

Installation
------------

[](#installation)

```
composer require novius/laravel-nova-menu
```

Then, launch migrations

```
php artisan migrate
```

### Configuration

[](#configuration)

Some options that you can override are available.

```
php artisan vendor:publish --provider="Novius\LaravelNovaMenu\LaravelNovaMenuServiceProvider" --tag="config"
```

Edit default templates
----------------------

[](#edit-default-templates)

Run:

```
php artisan vendor:publish --provider="Novius\LaravelNovaMenu\LaravelNovaMenuServiceProvider" --tag="views"
```

Usage
-----

[](#usage)

### Blade directive

[](#blade-directive)

You can display menu with :

```

```

You can also display menu by passing the model instance :

```

```

By default a fallback to app()-&gt;getLocale() is activated.

If you want force a specific slug with no fallback you can call :

```

```

If you want to use a specific view you can call :

```

```

### Override views

[](#override-views)

You can override views with :

```
php artisan vendor:publish --provider="Novius\LaravelNovaMenu\LaravelNovaMenuServiceProvider" --tag="views"
```

### Manage internal link possibilities

[](#manage-internal-link-possibilities)

Laravel Nova Menu uses [Laravel Linkable](https://github.com/novius/laravel-linkable) to manage linkable routes and models. Please read the documentation.

### Customize tree passed to the view

[](#customize-tree-passed-to-the-view)

```
