😅😊Laravel Drag and Drop menu editor like wordpress (ok)

https://github.com/harimayco/wmenu-builder

Da thuc hien

Hiện tại đang chạy được trên version php 7.4 version php 8.2 bị lỗi.
94KB
Open

C:\xampp824\htdocs\testnet\config\app.php

C:\xampp743\htdocs\testnet\database\migrations\2017_08_11_073824_create_menus_wp_table.php

C:\xampp743\htdocs\testnet\database\migrations\2017_08_11_074006_create_menu_items_wp_table.php

C:\xampp743\htdocs\testnet\database\migrations\2019_01_05_293551_add_role_id_to_menu_items_table.php

C:\xampp743\htdocs\testnet\resources\views\test.blade.php

C:\xampp743\htdocs\testnet\resources\views\layouts\app.blade.php

C:\xampp743\htdocs\testnet\routes\web.php

C:\xampp743\htdocs\testnet\resources\views\vendor\wmenu\menu-html.blade.php

C:\xampp743\htdocs\testnet\resources\views\vendor\wmenu\scripts.blade.php

C:\xampp743\htdocs\testnet\public\vendor\harimayco-menu\menu.js

C:\xampp743\htdocs\testnet\public\vendor\harimayco-menu\scripts2

C:\xampp743\htdocs\testnet\public\vendor\harimayco-menu\style.scss

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

Latest Stable Version Latest Unstable Version Total Downloads Monthly Downloads

forked from https://github.com/lordmacu/wmenu Laravel drag and drop menu

Installation

  1. Run

Step 2 & 3 are optional if you are using laravel 5.5

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

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

  1. Run publish

  1. 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

  1. Run migrate

DONE

On your view blade file

Using The Model

Call the model class

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

Using Model Class

or Using helper

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

KNOWN ISSUES

  • Not working with RTL websites #21 (pull requests are welcome)

Last updated

Was this helpful?