PHPackages                             maig81/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. maig81/backpack-menu

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

maig81/backpack-menu
====================

Menu system for Backpack 4.1

v1.0.8(5y ago)012MITPHP

Since Jun 23Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (9)Used By (0)

maig81/backpack-menu
====================

[](#maig81backpack-menu)

An multiple menu manager for Laravel Backpack. Created out of the need to make multiple menus and to include multiple models in the menu. It also has a bootstrap menu frontend blade files.

Install
-------

[](#install)

1. Run in your terminal: ```
    composer require maig81/backpack-menu

    ```
2. Edit `/config/app.php` and add to `providers` array ```
    Maig81\BackpackMenu\MenuServiceProvider::class,

    ```
3. Publish the views, config and migrations: ```
    php artisan vendor:publish --provider="Maig81\BackpackMenu\MenuServiceProvider"

    ```
4. Run the migration to have the database table we need: ```
    php artisan migrate

    ```
5. \[optional\] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php: ```
    php artisan backpack:add-sidebar-content " Menus"

    ```

Usage
-----

[](#usage)

1. Edit `config/backpackmenu.php` and add models you need to be in the Menu system. The Model should have `title` as it will be in the list.
2. Edit files in `views/vendor/backpack_menu` if you need to alter the views. As the names suggest, `menu_template.php` is the outer template for the menu, and the `menu_item.blade.php` is a single link that calls itself recursively if there are children.
3. BackpackMenu model has `getMenuView()` that will generate a menu from `views/vendor/backpack_menu` views.

Example
-------

[](#example)

This is a crude example... You can make a field in your template to get the menu you need.

Add this to your view controller:

```
$menu = \Maig81\BackpackMenu\App\Models\BackpackMenu::find(1);
return view('your_view', ["menu" => $menu]);

```

Then, in your view you can add to get the bootstrap menu generated:

```
$menu->getMenuView();

```

To Do
-----

[](#to-do)

1. Add `Menuable` Trait that you can add to the model. It will add `getLink()` and `getTitle()` function.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

8

Last Release

2139d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2852f15c1f2737f9469dfff3f202ba1afe06433e7992217b4443078b090783f?d=identicon)[kackavaljer](/maintainers/kackavaljer)

---

Top Contributors

[![maig81](https://avatars.githubusercontent.com/u/5046343?v=4)](https://github.com/maig81 "maig81 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

290870.9k10](/packages/backpack-settings)[backpack/theme-tabler

UI for Backpack v6 that uses Tabler and Bootstrap v5.

35536.5k](/packages/backpack-theme-tabler)[backpack/activity-log

Activity Log for Backpack

3487.5k1](/packages/backpack-activity-log)[thomascombe/backpack-async-export

This is a package to manage async export in Backpack for Laravel

1528.5k](/packages/thomascombe-backpack-async-export)

PHPackages © 2026

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