PHPackages                             novius/laravel-backpack-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. novius/laravel-backpack-menu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

novius/laravel-backpack-menu
============================

Manages the editing and rendering of menus in Laravel application using Backpack

0.5.0(6y ago)37.1k9[1 PRs](https://github.com/novius/laravel-backpack-menu/pulls)AGPL-3.0-or-laterPHPPHP &gt;=7.3

Since Nov 3Pushed 4y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (15)Used By (0)

Laravel Backoffice Menu
=======================

[](#laravel-backoffice-menu)

[![Travis](https://camo.githubusercontent.com/4ece8ad6a1d44c41ea27251c206ef618425237aa408f7948df3e6e7b8be3362e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6f766975732f6c61726176656c2d6261636b7061636b2d6d656e752e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://travis-ci.org/novius/laravel-backpack-menu)[![Packagist Release](https://camo.githubusercontent.com/65c5bb4580bf67c02466bc20fe75f153fc3ababc80ab93997a75288c27cdfb02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f766975732f6c61726176656c2d6261636b7061636b2d6d656e752e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://packagist.org/packages/novius/laravel-backpack-menu)[![Licence](https://camo.githubusercontent.com/9b0b9e8d1ee7d3ea3333df186b2edfeda71c771fc6ac733a437906d37b2fb5a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f766975732f6c61726176656c2d6261636b7061636b2d6d656e752e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://github.com/novius/laravel-backpack-menu#licence)

Manages the editing and rendering of menus in a Laravel - Backpack application.

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

[](#installation)

In your terminal:

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

Then, if you are on Laravel 5.4 (no need for Laravel 5.5 and higher), register the service provider to your `config/app.php` file:

```
Novius\Backpack\Menu\MenuServiceProvider::class
```

Finally, run:

```
php artisan vendor:publish --provider="Novius\Backpack\Menu\MenuServiceProvider" --tag="routes"
php artisan vendor:publish --provider="Novius\Backpack\Menu\MenuServiceProvider" --tag="lang"
php artisan vendor:publish --provider="Novius\Backpack\Menu\MenuServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Novius\Backpack\Menu\MenuServiceProvider" --tag="views"
php artisan vendor:publish --provider="Novius\Backpack\Menu\MenuServiceProvider" --tag="config"

php artisan migrate
```

Usage &amp; Features
--------------------

[](#usage--features)

You can display the menu within your view like this:

```
// The function takes two parameters:
//  1. Slug => Identifies the menu
//  2. Locale => (Optional) Force a locale version of the menu.

\Novius\Backpack\Menu\Models\Menu::display('header', 'en');
```

To achieve that, first you need:

#### Configure the package. Take a look at the comments in:

[](#configure-the-package-take-a-look-at-the-comments-in)

```
/config/laravel-backpack-menu.php

```

#### Use the trait *LinkedItems* in the models you listed in the *linkableObjects* configuration

[](#use-the-trait-linkeditems-in-the-models-you-listed-in-the-linkableobjects-configuration)

```
use Novius\Backpack\Menu\LinkedItems;

// And optionally overrides the base functionality to suit your needs:

public static function linkableItems(string $prefix = ''): array
public static function linkableRoute(string $routeName, string $translation): array
public function linkableUrl(): string
public function linkableTitle(): string
public function linkableId(): string
```

#### Add a link in your sidebar.blade.php file to get access from the backpack backoffice

[](#add-a-link-in-your-sidebarbladephp-file-to-get-access-from-the-backpack-backoffice)

```

      {{ trans('laravel-backpack-menu::menu.menus') }}

```

#### Create your menus and items. You can reorder and nest the items. The items are related to the current locale. Switch the back-office language to add items for other locales.

[](#create-your-menus-and-items-you-can-reorder-and-nest-the-items-the-items-are-related-to-the-current-locale-switch-the-back-office-language-to-add-items-for-other-locales)

Testing
-------

[](#testing)

Run the tests with:

```
./test.sh
```

Any modification must pass all the tests. Any modification should be covered by a test.

Lint
----

[](#lint)

Run php-cs with:

```
./cs.sh
```

Contributing
------------

[](#contributing)

Contributions are welcome! Leave an issue on Github, or create a Pull Request.

Licence
-------

[](#licence)

This package is under [GNU Affero General Public License v3](http://www.gnu.org/licenses/agpl-3.0.html) or (at your option) any later version.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~208 days

Total

15

Last Release

2190d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.1

0.5.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/341860?v=4)[Novius](/maintainers/novius)[@novius](https://github.com/novius)

---

Top Contributors

[![tony-novius](https://avatars.githubusercontent.com/u/243603340?v=4)](https://github.com/tony-novius "tony-novius (16 commits)")[![jguyomard](https://avatars.githubusercontent.com/u/1242207?v=4)](https://github.com/jguyomard "jguyomard (8 commits)")[![shaoshiva](https://avatars.githubusercontent.com/u/2183266?v=4)](https://github.com/shaoshiva "shaoshiva (1 commits)")[![tonyyb](https://avatars.githubusercontent.com/u/11064382?v=4)](https://github.com/tonyyb "tonyyb (1 commits)")

---

Tags

laravelmenubackpackNovius

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/novius-laravel-backpack-menu/health.svg)

```
[![Health](https://phpackages.com/badges/novius-laravel-backpack-menu/health.svg)](https://phpackages.com/packages/novius-laravel-backpack-menu)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[webfactor/laravel-backpack-instant-fields

Instant fields to create/edit/delete related entities on the fly in Laravel Backpack

496.9k](/packages/webfactor-laravel-backpack-instant-fields)[nguyendachuy/laravel-menu

Laravel Menu Builder | Drag &amp; Drop | Bootstrap | Laravel 7 | Laravel 8 | Laravel 9 | Laravel 10 | Laravel 11 | Laravel 12

162.2k](/packages/nguyendachuy-laravel-menu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
