PHPackages                             abcdebo/laravel-bootstrap-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. abcdebo/laravel-bootstrap-menu

ActiveLibrary

abcdebo/laravel-bootstrap-menu
==============================

drag and drop menu generator for laravel

01PHP

Since Jan 30Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Drag and Drop menu
==========================

[](#laravel-drag-and-drop-menu)

[![Latest Stable Version](https://camo.githubusercontent.com/1b02e4cb92344a5cac0a93d0d5fa7893f1854b0ca36bede3979ab21d47303d9f/68747470733a2f2f706f7365722e707567782e6f72672f6162636465626f2f6c61726176656c2d626f6f7473747261702d6d656e752f76)](//packagist.org/packages/abcdebo/laravel-bootstrap-menu) [![Total Downloads](https://camo.githubusercontent.com/01022abe56c9d4e04e847779f0d4a49521adfab1c966a8a942307935a2803391/68747470733a2f2f706f7365722e707567782e6f72672f6162636465626f2f6c61726176656c2d626f6f7473747261702d6d656e752f646f776e6c6f616473)](//packagist.org/packages/abcdebo/laravel-bootstrap-menu) [![Latest Unstable Version](https://camo.githubusercontent.com/10ba5cb65e4e690c89f5aaa53b6c91db64c80b74526bd67752af8fd1605677c0/68747470733a2f2f706f7365722e707567782e6f72672f6162636465626f2f6c61726176656c2d626f6f7473747261702d6d656e752f762f756e737461626c65)](//packagist.org/packages/abcdebo/laravel-bootstrap-menu) [![License](https://camo.githubusercontent.com/27b264d03d3dfbb771bd6174da69cbfc03f7513d9f12e2af610f566c909ad364/68747470733a2f2f706f7365722e707567782e6f72672f6162636465626f2f6c61726176656c2d626f6f7473747261702d6d656e752f6c6963656e7365)](//packagist.org/packages/abcdebo/laravel-bootstrap-menu)

### Installation

[](#installation)

1. Run

```
composer require abcdebo/laravel-bootstrap-menu
```

***Step 2 &amp; 3 are optional if you are using laravel 5.5***

2. Add the following class, to "providers" array in the file config/app.php (optional on laravel 5.5)

```
ABCDebo\Menu\Providers\MenuServiceProvider::class,
```

3. add facade in the file config/app.php (optional on laravel 5.5)

```
'Menu' => ABCDebo\Menu\Facades\Menu::class,
```

4. Run publish

```
php artisan vendor:publish --provider="ABCDebo\Menu\Providers\MenuServiceProvider"
```

5. Configure (optional) in ***config/menu.php*** :

- ***CUSTOM MIDDLEWARE:*** You can add you own middleware
- ***TABLE PREFIX:*** By default this package will create 2 new tables named "menus" and "menu\_items" but you can still add your own table prefix avoiding conflict with existing table
- ***TABLE NAMES*** If you want use specific name of tables you have to modify that and the migrations
- ***Custom routes*** If you want to edit the route path you can edit the field
- ***Role Access*** If you want to enable roles (permissions) on menu items

6. Run migrate

```
php artisan migrate
```

DONE

### Menu Builder Usage Example - displays the builder

[](#menu-builder-usage-example---displays-the-builder)

On your view blade file

```
@extends('app')

@section('contents')
    {!! Menu::render() !!}
@endsection

//YOU MUST HAVE JQUERY LOADED BEFORE menu scripts
@push('scripts')
    {!! Menu::scripts() !!}
@endpush
```

### Using The Model

[](#using-the-model)

Call the model class

```
use ABCDebo\Menu\Models\Menus;
use ABCDebo\Menu\Models\MenuItems;
```

### Menu Usage Example (a)

[](#menu-usage-example-a)

A basic two-level menu can be displayed in your blade template

##### Using Model Class

[](#using-model-class)

```
/* get menu by id*/

$menu = Menus::find(1);
/* or by name */
$menu = Menus::where('name','Test Menu')->first();

/* or get menu by name and the items with EAGER LOADING (RECOMENDED for better performance and less query call)*/
$menu = Menus::where('name','Test Menu')->with('items')->first();
/*or by id */
$menu = Menus::where('id', 1)->with('items')->first();

//you can access by model result
$public_menu = $menu->items;

//or you can convert it to array
$public_menu = $menu->items->toArray();
```

##### or Using helper

[](#or-using-helper)

```
// Using Helper
$public_menu = Menu::getByName('Public'); //return array
```

### Menu Usage Example (b)

[](#menu-usage-example-b)

Now inside your blade template file place the menu using this simple example

```

        @if($public_menu)

            @foreach($public_menu as $menu)

                {{ $menu['label'] }}
                @if( $menu['child'] )

                    @foreach( $menu['child'] as $child )
                        {{ $child['label'] }}
                    @endforeach

                @endif

            @endforeach
        @endif

```

### HELPERS

[](#helpers)

### Get Menu Items By Menu ID

[](#get-menu-items-by-menu-id)

```
use ABCDebo\Menu\Facades\Menu;
...
/*
Parameter: Menu ID
Return: Array
*/
$menuList = Menu::get(1);
```

### Get Menu Items By Menu Name

[](#get-menu-items-by-menu-name)

In this example, you must have a menu named *Admin*

```
use ABCDebo\Menu\Facades\Menu;
...
/*
Parameter: Menu ID
Return: Array
*/
$menuList = Menu::getByName('Admin');
```

### Customization

[](#customization)

you can edit the menu interface in ***resources/views/vendor/abcdebo-menu/menu-html.blade.php***

laravel-bootstrap-menu
======================

[](#laravel-bootstrap-menu)

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

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/ab32d84ce91c6b3f5d8134d46a356eb44ffbd168d61785e725a7956c505af9d7?d=identicon)[abcdebo](/maintainers/abcdebo)

### Embed Badge

![Health badge](/badges/abcdebo-laravel-bootstrap-menu/health.svg)

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

PHPackages © 2026

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