Download the PHP package farindra/laravel-menugenerator without Composer
On this page you can find all versions of the php package farindra/laravel-menugenerator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download farindra/laravel-menugenerator
More information about farindra/laravel-menugenerator
Files in farindra/laravel-menugenerator
Package laravel-menugenerator
Short Description drag and drop menu generator like wordpress for laravel
License MIT
Informations about the package laravel-menugenerator
Laravel Drag and Drop menu editor like wordpress
*This package is abandoned: I'm not maintaining this package anymore, please contact me if you want to take over this project or feel free to fork and make your own. Thank you
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
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/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, 6.x, 7.x, 9.x
KNOWN ISSUES
- Not working with RTL websites #21 (pull requests are welcome)