Download the PHP package bdacademy/laravel-menu without Composer
On this page you can find all versions of the php package bdacademy/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?
bdacademy/laravel-menu
Rate from 1 - 5
Rated 5.00 based on 1 reviews
Rated 5.00 based on 1 reviews
Informations about the package laravel-menu
Drag & Drop menu builder like WordPress for Laravel 11.x
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
- Post Model You can add your own post model. Default is Post
- Category Model You can add your own category model. Default is Category
- Post Title Column You can add your own post model title column. Default is title
- Category Title Column You can add your own category model title column. Default is name
- Run migrate
DONE
Laravel Menu Usage Example - displays the UI
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/laravel-menu/menu.blade.php
Credits
- wmenu laravel package menu like wordpress
Compatibility
- Tested with laravel 11.x
- Work only laravel 11.x
All versions of laravel-menu with dependencies
PHP Build Version
Package Version
The package bdacademy/laravel-menu contains the following files
Loading the files please wait ....