Download the PHP package nguyendachuy/laravel-menu without Composer
On this page you can find all versions of the php package nguyendachuy/laravel-menu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-menu
Laravel Drag and Drop menu
Installation
-
Run
-
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
- CACHE ENABLED: Set this to
true
if you want to enable caching for menu items. Default isfalse
. - CACHE KEY PREFIX: The prefix to use for cache keys. Default is
'menu'
. - CACHE TTL: The time-to-live (in minutes) for cached menu items. Default is
60
.
- 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/nguyendachuy-menu/menu-html.blade.php
All versions of laravel-menu with dependencies
PHP Build Version
Package Version
The package nguyendachuy/laravel-menu contains the following files
Loading the files please wait ....