PHPackages                             tannhatcms/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. [Admin Panels](/categories/admin)
4. /
5. tannhatcms/menucrud

ActiveLibrary[Admin Panels](/categories/admin)

tannhatcms/menucrud
===================

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

04Blade

Since Dec 18Pushed 3mo agoCompare

[ Source](https://github.com/TanNhatCMS/Laravel-Backpack-MenuCRUD)[ Packagist](https://packagist.org/packages/tannhatcms/menucrud)[ RSS](/packages/tannhatcms-menucrud/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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)[![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 [Backpack\\CRUD](https://github.com/Laravel-Backpack/crud). Add, edit, reorder, nest, rename menu items and link them to [Backpack\\PageManager](https://github.com/Laravel-Backpack/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 [Backpack\\PageManager](https://github.com/Laravel-Backpack/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/Laravel-Backpack/MenuCRUD/archive/master.zip).
2. Paste the 'app' and 'database' folders over your projects (merge them). No file overwrite warnings should come up.
3. Copy the `page_or_link.blade.php` file located in 'resources/views/fields' folder to your project's 'resources/views/vendor/backpack/crud/fields' folder. No file overwrite warnings should come up.
4. 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

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

```
php artisan migrate

```

6. 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');
});

```

7. \[optional\] Add a menu item for it:

```
# For Backpack v6
php artisan backpack:add-menu-content ""
# For Backpack v5 or v4
php artisan backpack:add-sidebar-content " Menu"

```

#### Installation type (B) - package

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

1. In your terminal, run:

```
composer require backpack/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:

```
# For Backpack v6
php artisan backpack:add-menu-content ""
# For Backpack v5 or v4
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.

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

21

—

LowBetter than 19% of packages

Maintenance56

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80.3% 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.

### Community

Maintainers

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

---

Top Contributors

[![tabacitu](https://avatars.githubusercontent.com/u/1032474?v=4)](https://github.com/tabacitu "tabacitu (94 commits)")[![pxpm](https://avatars.githubusercontent.com/u/7188159?v=4)](https://github.com/pxpm "pxpm (6 commits)")[![promatik](https://avatars.githubusercontent.com/u/1838187?v=4)](https://github.com/promatik "promatik (3 commits)")[![karandatwani92](https://avatars.githubusercontent.com/u/8214221?v=4)](https://github.com/karandatwani92 "karandatwani92 (2 commits)")[![reeslo](https://avatars.githubusercontent.com/u/2724844?v=4)](https://github.com/reeslo "reeslo (2 commits)")[![eduardoarandah](https://avatars.githubusercontent.com/u/4065733?v=4)](https://github.com/eduardoarandah "eduardoarandah (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![de-raaf-media](https://avatars.githubusercontent.com/u/2411162?v=4)](https://github.com/de-raaf-media "de-raaf-media (1 commits)")[![Rattone](https://avatars.githubusercontent.com/u/7362607?v=4)](https://github.com/Rattone "Rattone (1 commits)")[![sashaphmn](https://avatars.githubusercontent.com/u/122053040?v=4)](https://github.com/sashaphmn "sashaphmn (1 commits)")[![shahadatzcpe](https://avatars.githubusercontent.com/u/17823170?v=4)](https://github.com/shahadatzcpe "shahadatzcpe (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![mansourcodes](https://avatars.githubusercontent.com/u/3064487?v=4)](https://github.com/mansourcodes "mansourcodes (1 commits)")[![nakamuraagatha](https://avatars.githubusercontent.com/u/5313802?v=4)](https://github.com/nakamuraagatha "nakamuraagatha (1 commits)")

### Embed Badge

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

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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