Laravel Menu Builder with VueJs and jQuery. Build your multi level menu within 5 minutes.
composer require codexshaper/laravel-menu-builder
- If your mysql version is old then follow next steps
* Goto `app\Providers\AppServiceProvider.php` and open it in your text editor
* Add `use Illuminate\Support\Facades\Schema;` on top under namespace
* Add `Schema::defaultStringLength(191);` in your boot method
php artisan menu:install
To check menus go to http://127.0.0.1:8000/admin/menus
. You can change admin
prefix from config/menu.php
Option 1:
@extends('menu::layouts.app')
@section('content')
{{ menu('name') }}
@endsection
Option 2:
- Call Menu anywhere on your site by calling
{{ menu('name') }}
or@menu('name')
- Link CSS and JS if you want to use our default design
CSS: <link rel="stylesheet" type="text/css" href="{{ menu_asset('css/menu.css') }}">
JS: <script src="{{ menu_asset('js/menu.js') }}"></script>
- Optional: If you don't have jQuery and bootstrap in your page then add
app.css
beforemenu.css
and addapp.js
beforemenu.js
CSS: <link rel="stylesheet" type="text/css" href="{{ menu_asset('css/app.css') }}">
JS: <script src="{{ menu_asset('js/app.js') }}"></script>
See also the list of contributors who participated in this project.
- MIT license
- Copyright 2019 © CodexShaper.
- Special Thanks to Voyager for awesome design concept