Download the PHP package ggets/laravel-menu-builder without Composer
On this page you can find all versions of the php package ggets/laravel-menu-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-menu-builder
Laravel Drag and Drop menu editor like wordpress
*This package was forked from a previously abandoned one: It will take some time to fix support for laravel 9+ and the rest of the issues. Please be patient if you are in a search for a working version of the menu builder. Thank you!
forked from https://github.com/lordmacu/wmenu
Installation
- Prerequisites
0.1. jQuery
0.2. jQueryUI (with plugins)
0.3. Bootstrap
0.4. Fontawesome
To install dependencies via npm, run:
You are responsible for your own copy of FontAwesome.
Then in your laravel Mix config (resources/js/app.js)
Then, to compile your mix, run:
- Run
Step 2 & 3 are optional if you are using laravel 5.5
-
Add the following class, to "providers" array in the file config/app.php (optional on laravel 5.5)
-
add facade in the file config/app.php (optional on laravel 5.5)
-
Run publish
- 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
- Run migrate
DONE
Menu Builder Usage Example - displays the builder
On your view blade file
Using The Model
Call the model class
Menu Usage Example (a)
A basic two-level menu can be displayed in your blade template
Using Model Class
or Using helper
Menu Usage Example (b)
Now inside your blade template file place the menu using this simple example
HELPERS
Get Menu Items By Menu ID
Get Menu Items By Menu Name
In this example, you must have a menu named Admin
Customization
you can edit the menu interface in resources/views/vendor/ggets-menu-builder/menu-html.blade.php
Credits
- wmenu laravel package menu like wordpress
Compatibility
- Tested with laravel 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.x, 7.x, 8.x, 9.x
KNOWN ISSUES
- Not working with RTL websites #21 (pull requests are welcome)
All versions of laravel-menu-builder with dependencies
illuminate/support Version ^5.6 || 6.* || 7.* || 8.* || 9.* || 10.*