2017 © Pedro Peláez
 

library menubuilder

drag and drop menu generator like wordpress for laravel 5

image

soeurngsar/menubuilder

drag and drop menu generator like wordpress for laravel 5

  • Friday, November 24, 2017
  • by soeurngsar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 47 % Grown

The README.md

Laravel Drag and Drop menu editor like wordpress

forked from https://github.com/lordmacu/wmenu Laravel drag and drop menu for backpack, (*1)

Note

This package is work perfectly with Backpack and require minimum version of 4.0, (*2)

Installation

  1. Run
composer require soeurngsar/menubuilder
  1. Run publish assets
php artisan vendor:publish --provider="SoeurngSar\MenuBuilder\MenuServiceProvider"
  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 4. Run migrate, (*3)

php php artisan migrate, (*4)

DONE, (*5)

Usage Example

On your view blade file for admin, (*6)


@section('contents') {!! Menu::render() !!} @endsection

On your view blade file for frontend, (*7)


@section('contents') {!! Menu::renderBootstrapNav('Brand Text','menu name','navbar-default') !!} @endsection

Get Menu Items By Menu ID

use SoeurngSar\MenuBuilder\app\Facades\Menu;
...
/*
Parameter: Menu ID
Return: Array
*/
$menuList = Menu::get(1);

Get Menu Items By Menu Name

In this example, you must have a menu named Primary, (*8)

use SoeurngSar\MenuBuilder\app\Facades\Menu;
...
/*
Parameter: Menu ID
Return: Array
*/
$menuList = Menu::getByName('Primary');

Using The Model

Call the model class, (*9)

use SoeurngSar\MenuBuilder\app\Models\Menus;
use SoeurngSar\MenuBuilder\app\Models\MenuItems;

Credits

  • wmenu laravel package menu like wordpress

Compatibility

  • Tested with laravel 8.0 with Backpack version 4.0

The Versions

24/11 2017

1.1

1.1.0.0

drag and drop menu generator like wordpress for laravel 5

  Sources   Download

The Requires

 

by Cristian Garcia
by Sar Soeurng

wordpress laravel menu builder backpack

24/11 2017

dev-master

9999999-dev

drag and drop menu generator like wordpress for laravel 5

  Sources   Download

The Requires

 

by Cristian Garcia
by Sar Soeurng

wordpress laravel menu builder backpack

24/11 2017

1.0

1.0.0.0

drag and drop menu generator like wordpress for laravel 5

  Sources   Download

The Requires

 

by Cristian Garcia
by Sar Soeurng

wordpress laravel menu builder backpack