Download the PHP package amiranbari/persian-laravel-menu without Composer
On this page you can find all versions of the php package amiranbari/persian-laravel-menu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amiranbari/persian-laravel-menu
More information about amiranbari/persian-laravel-menu
Files in amiranbari/persian-laravel-menu
Package persian-laravel-menu
Short Description drag and drop menu generator like wordpress for laravel 5
License
Informations about the package persian-laravel-menu
See document here https://amiranbari.github.io/menu-builder/
`# Laravel Drag and Drop menu editor like wordpress
forked from https://github.com/Malekfar/menu-builder
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, 6.x, 7.x