Download the PHP package smartystudio/laravelmenu without Composer
On this page you can find all versions of the php package smartystudio/laravelmenu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smartystudio/laravelmenu
More information about smartystudio/laravelmenu
Files in smartystudio/laravelmenu
Package laravelmenu
Short Description Drag and drop menu generator for Laravel.
License MIT
Homepage https://smartycms.net
Informations about the package laravelmenu
Drag and Drop menu generator for Laravel
An admin interface for Laravel to easily add, edit or remove Menus.
Install
- In your terminal:
Step 2 & 3 are optional if you are using laravel 5.5
-
If your Laravel version does not have package autodiscovery then add the service provider to your config/app.php file:
-
Add facade in the file config/app.php (optional on laravel 5.5):
-
Publish the config file & run the migrations.
- Configure (optional) in
config/laravelmenu.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 the database migrations:
DONE!
Menu Builder Usage Example - displays the builder
On your view blade file
You must have jQuery loaded before menu scripts
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
Using Helper class
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 of the menu
You can publish and edit the menu layout in resources/views/vendor/smartystudio/laravelmenu/menu.blade.php
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email us instead of using the issue tracker.
Credits
- Martin Nestorov - Web Developer @ Smarty Studio.
- All Contributors
License
The SmartyStudio\LaravelMenu is open-source software licensed under the MIT license.