Download the PHP package sumantablog/dragndroplaravelmenu without Composer
On this page you can find all versions of the php package sumantablog/dragndroplaravelmenu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sumantablog/dragndroplaravelmenu
More information about sumantablog/dragndroplaravelmenu
Files in sumantablog/dragndroplaravelmenu
Package dragndroplaravelmenu
Short Description Drag And Drop Menu Builder in Laravel
License MIT
Informations about the package dragndroplaravelmenu
Laravel Drag and Drop menu Builder
forked from https://github.com/lordmacu/wmenu
Installation
- 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
Get Menu Items By Menu ID
Get Menu Items By Menu Name
In this example, you must have a menu named Admin
Using The Model
Call the model class
Menu Usage Example (a)
A basic two-level menu can be displayed in your blade template
Menu Usage Example (b)
Now inside your blade template file place the menu using this simple example
Customization
you can edit the menu interface in resources/views/vendor/wmenu/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