PHPackages                             afzalsabbir/menucrud - 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. afzalsabbir/menucrud

ActiveLibrary

afzalsabbir/menucrud
====================

An admin panel for menu items, using Backpack\\CRUD on Laravel 6+.

v3.0.2(3y ago)097proprietaryPHP

Since Jun 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AfzalSabbir/menucrud)[ Packagist](https://packagist.org/packages/afzalsabbir/menucrud)[ Docs](https://github.com/afzalsabbir/MenuCRUD)[ RSS](/packages/afzalsabbir-menucrud/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Backpack\\MenuCRUD
==================

[](#backpackmenucrud)

[![Latest Version on Packagist](https://camo.githubusercontent.com/46cf6791957f3cb08a5fdae73a43e6c9699eb85d1e6df85c6213b694469278f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261636b7061636b2f4d656e75435255442e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backpack/MenuCRUD)[![Software License](https://camo.githubusercontent.com/5a202d5327ab4ae3bf5cc50fcfa3d2f0823d818a4f115a027d8176dcb996c4d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d6475616c2d626c75653f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/b91bffea68bf2c5f9f51cde83d26177f9d69e23fc1635227ee0e442dcf6a175d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4c61726176656c2d4261636b7061636b2f4d656e75435255442f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Laravel-Backpack/MenuCRUD)[![Coverage Status](https://camo.githubusercontent.com/112015adf5d8d7b2f06b8c1d460fc2b316eae4c495312f2480500e3a956ab8f6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4c61726176656c2d4261636b7061636b2f4d656e75435255442e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Laravel-Backpack/MenuCRUD/code-structure)[![Quality Score](https://camo.githubusercontent.com/04e05edc3d7480be634b9c1d7e63f42ae53abcfd9b99ecd02c499dd84c88e248/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4c61726176656c2d4261636b7061636b2f4d656e75435255442e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Laravel-Backpack/MenuCRUD)[![Total Downloads](https://camo.githubusercontent.com/5720ca3ccc54122897afd3cc2df58597259d5dd23c8918f3c759320515cfcb6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261636b7061636b2f4d656e75435255442e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backpack/MenuCRUD)

An admin panel for menu items on Laravel 5 or Laravel 6, using [AfzalSabbir\\CRUD](https://github.com/AfzalSabbir/crud). Add, edit, reorder, nest, rename menu items and link them to [AfzalSabbir\\PageManager](https://github.com/AfzalSabbir/pagemanager) pages, external link or custom internal link.

Usually used for front-end menus, not back-end. Adding a menu item in MenuCRUD will not add an item in the admin sidebar, though you can easily customize Backpack\\Base's `sidebar.blade.php` to show all menu items in the db, if you'd like.

> ### Security updates and breaking changes
>
> [](#security-updates-and-breaking-changes)
>
> Please **[subscribe to the Backpack Newsletter](http://backpackforlaravel.com/newsletter)** so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

Install
-------

[](#install)

This needs [AfzalSabbir\\PageManager](https://github.com/AfzalSabbir/pagemanager) to be installed first. If you haven't already, please do that first.

Since MenuCRUD is just a Backpack\\CRUD example, you can choose to install it one of two ways.

**(A) Download and place files in your application** (recommended)

or

**(B) As a package**

The only PRO of installing it as a package is that you may benefit from updates. But the reality is there is very little (if any) bug fixing to do, so you probably won't need to update it, ever.

#### Installation type (A) - download

[](#installation-type-a---download)

1. [Download the latest build](https://github.com/AfzalSabbir/MenuCRUD/archive/master.zip).
2. Paste the 'app' and 'database' folders over your projects (merge them). No file overwrite warnings should come up.
3. Replace all mentions of 'Backpack\\MenuCRUD\\app' in the pasted files with your application's namespace ('App' if you haven't changed it):

- app/Http/Controllers/Admin/MenuItemCrudController.php
- app/Models/MenuItem.php

4. Run the migration to have the database table we need:

```
php artisan migrate

```

5. Add MenuCRUD to your routes file:

```
Route::group(['prefix' => config('backpack.base.route_prefix', 'admin'), 'middleware' => ['web', 'auth'], 'namespace' => 'Admin'], function () {
    // Backpack\MenuCRUD
    Route::crud('menu-item', 'MenuItemCrudController');
});

```

6. \[optional\] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php:

```
 Menu
```

#### Installation type (B) - package

[](#installation-type-b---package)

1. In your terminal, run:

```
composer require afzalsabbir/menucrud
```

2. Publish the migration:

```
php artisan vendor:publish --provider="Backpack\MenuCRUD\MenuCRUDServiceProvider"

```

3. Run the migration to have the database table we need:

```
php artisan migrate

```

4. \[optional\] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar\_content.blade.php or menu.blade.php:

```
php artisan backpack:add-sidebar-content " Menu"

```

#### Usage in your template

[](#usage-in-your-template)

Here's a simple example to use in your frontend:

You can access item children with `$item->children`

```
@foreach (\App\MenuItem::getTree(); as $item)

     {{ $item->name }}

@endforeach

```

For Installation type (B), change the namespace to `Backpack\MenuCRUD\app\Models`.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Overwriting functionality
-------------------------

[](#overwriting-functionality)

If you've used installation type A and need to modify how this works in a project:

- create a `routes/backpack/menucrud.php` file; the package will see that, and load *your* routes file, instead of the one in the package;
- create controllers/models that extend the ones in the package, and use those in your new routes file;
- modify anything you'd like in the new controllers/models;

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

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

Please **[subscribe to the Backpack Newsletter](http://backpackforlaravel.com/newsletter)** so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

Credits
-------

[](#credits)

- [Cristian Tabacitu](https://github.com/tabacitu)
- [All Contributors](../../contributors)

License
-------

[](#license)

Backpack is free for non-commercial use and 49 EUR/project for commercial use. Please see [License File](LICENSE.md) and [backpackforlaravel.com](https://backpackforlaravel.com/#pricing) for more information.

Hire us
-------

[](#hire-us)

We've spend more than 10.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels *so much*, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects.

If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience &amp; enthusiasm for this. This is *what we do*. [Contact us - let's see if we can work together](https://backpackforlaravel.com/need-freelancer-or-development-team).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~48 days

Total

2

Last Release

1379d ago

### Community

Maintainers

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

---

Top Contributors

[![AfzalSabbir](https://avatars.githubusercontent.com/u/39697431?v=4)](https://github.com/AfzalSabbir "AfzalSabbir (7 commits)")

---

Tags

backpackMenuCRUD

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/afzalsabbir-menucrud/health.svg)

```
[![Health](https://phpackages.com/badges/afzalsabbir-menucrud/health.svg)](https://phpackages.com/packages/afzalsabbir-menucrud)
```

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.4M207](/packages/backpack-crud)[backpack/permissionmanager

Users and permissions management interface for Laravel 5 using Backpack CRUD.

5591.8M16](/packages/backpack-permissionmanager)[backpack/menucrud

An admin panel for menu items, using Backpack\\CRUD on Laravel 6.

198258.5k1](/packages/backpack-menucrud)[backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

290870.9k10](/packages/backpack-settings)[backpack/pagemanager

Create admin panels for presentation websites on Laravel, using page templates and Backpack\\CRUD.

371522.6k6](/packages/backpack-pagemanager)[backpack/logmanager

An interface to preview, download and delete Laravel log files.

274688.9k3](/packages/backpack-logmanager)

PHPackages © 2026

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