2017 © Pedro Peláez
 

library simple-menu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

image

ctf0/simple-menu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  • Monday, July 23, 2018
  • by ctf0
  • Repository
  • 2 Watchers
  • 22 Stars
  • 75 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 59 Versions
  • 10 % Grown

The README.md

SimpleMenu
Latest Stable Version Total Downloads

Create menus & pages that support (multiLocale "title, url, body, ...", nesting, template, static & dynamic data, roles & permissions)., (*1)

  • package requires Laravel v5.5+
  • package rely heavily on caching so make sure to install one of the tag enabled drivers Memcached / Redis


, (*2)

Installation

  • composer require ctf0/simple-menu, (*3)

  • after installation, run php artisan sm:setup to add, (*4)

    • package routes to routes/web.php
    • package assets compiling to webpack.mix.js
  • publish the packages assets with php artisan vendor:publish, (*5)

  • install JS dependencies, (*6)

    yarn add vue axios vue-tippy@v2 vuedraggable vue-notif vue-multi-ref vue-awesome@v2 list.js
    
  • add this one liner to your main js file and run npm run watch to compile your js/css files., (*7)

    • if you are having issues Check.
    // app.js
    
    window.Vue = require('vue')
    
    require('../vendor/SimpleMenu/js/manager')
    
    new Vue({
        el: '#app'
    })
    


, (*8)

Config

config/simpleMenu.php, (*9)

return [
    /*
     * the menu list classes to be used for "render()"
     */
    'listClasses' => [
        'ul' => 'menu-list',
        'li' => 'list-item',
        'a' => 'is-active',
    ],

    /*
     * the path where we will save the routes list
     */
    'routeListPath' => storage_path('logs/simpleMenu.php'),

    /*
     * where to redirect when a route is available in one locale "en" but not in another "fr" ?
     */
    'unFoundLocalizedRoute' => 'root',

    /*
     * package models
     */
    'models'=> [
        'user' => App\User::class,
        'page' => \ctf0\SimpleMenu\Models\Page::class,
        'menu' => \ctf0\SimpleMenu\Models\Menu::class,
    ],

    /*
     * when adding a page which is a nest of a nother to a menu, ex.
     *
     * root
     *   | child 1
     *     | child 2 "add this along with its childrens to another menu"
     *       | child 3
     *
     * do you want to clear its parent and make it a root ?
     */
    'clearPartialyNestedParent' => true,

    /*
     * when removing a root page from a menu, ex.
     *
     * root "remove"
     *   | child 1
     *     | child 2
     *       | child 3
     *
     * do you want clear all of its 'Descendants' ?
     */
    'clearRootDescendants' => false,

    /*
     * when removing a nest from a list, ex.
     *
     * root
     *   | child 1
     *     | child 2 "remove"
     *       | child 3
     *
     * do you want to reset its hierarchy ?
     */
    'clearNestDescendants'=> false,

    /*
     * when deleting a page "from the db", ex.
     *
     * page "delete/destroy"
     *   | nested child 1
     *     | nested child 2
     *       | nested child 3
     *
     * do you also want to delete all of its children ?
     */
    'deletePageAndNests' => false,

    /*
     * package routes url & route name prefix
     */
    'crud_prefix' => 'admin',

    /*
     * all the package controllers
     *
     * if you need to change anything, just create new controller
     * and extend from the below original
     * ex. "class ExampleController extends PagesController"
     */
    'controllers'=> [
        'permissions' => '\ctf0\SimpleMenu\Controllers\Admin\PermissionsController',
        'admin' => '\ctf0\SimpleMenu\Controllers\Admin\AdminController@index',
        'users' => '\ctf0\SimpleMenu\Controllers\Admin\UsersController',
        'pages' => '\ctf0\SimpleMenu\Controllers\Admin\PagesController',
        'roles' => '\ctf0\SimpleMenu\Controllers\Admin\RolesController',
        'menus' => '\ctf0\SimpleMenu\Controllers\Admin\MenusController',
    ],
];


, (*10)

Usage

Demo
Usage
Views, (*11)

  • add SMUsers trait to your User Model, (*12)

    use ctf0\SimpleMenu\Models\Traits\SMUsers;
    
    // ...
    
    class User extends Authenticatable
    {
        use Notifiable, SMUsers;
    }
    
  • visit localhost:8000/admin, (*13)

The Versions

23/07 2018

dev-master

9999999-dev https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu menu maker multi-locale

19/07 2018

v3.3.6

3.3.6.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

19/06 2018

v3.3.5

3.3.5.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

07/06 2018

v3.3.4

3.3.4.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

01/06 2018

v3.3.3

3.3.3.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

20/05 2018

v3.3.2

3.3.2.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

18/05 2018

v3.3.1

3.3.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

06/05 2018

v3.3.0

3.3.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

24/03 2018

v3.2.9

3.2.9.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

20/03 2018

v3.2.8

3.2.8.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

12/03 2018

v3.2.7

3.2.7.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

05/03 2018

v3.2.6

3.2.6.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

07/02 2018

v3.2.5

3.2.5.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

03/02 2018

v3.2.4

3.2.4.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

22/01 2018

v3.2.3

3.2.3.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

18/01 2018

v3.2.2

3.2.2.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

17/01 2018

v3.2.1

3.2.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

17/01 2018

v3.2.0

3.2.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

06/01 2018

v3.1.8

3.1.8.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

26/12 2017

v3.1.7

3.1.7.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

12/12 2017

v3.1.6

3.1.6.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

07/12 2017

v3.1.5

3.1.5.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

28/11 2017

v3.1.4

3.1.4.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

15/11 2017

v3.1.3

3.1.3.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

30/10 2017

v3.1.2

3.1.2.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel menu manager gui ctf0 simplemenu multi-locale

27/10 2017

v3.1.1

3.1.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

26/10 2017

v3.1.0

3.1.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

25/10 2017

v3.0.9

3.0.9.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

22/10 2017

v3.0.8

3.0.8.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

21/10 2017

v3.0.7

3.0.7.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

19/10 2017

v3.0.6

3.0.6.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

13/10 2017

v3.0.5

3.0.5.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocale 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

08/10 2017

v3.0.4

3.0.4.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

28/09 2017

v3.0.3

3.0.3.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

23/09 2017

v3.0.2

3.0.2.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

16/09 2017

v3.0.1

3.0.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

01/09 2017

v3.0.0

3.0.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

28/08 2017

v2.2.4

2.2.4.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

22/08 2017

v2.2.3

2.2.3.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

18/08 2017

v2.2.2

2.2.2.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

16/08 2017

v2.2.1

2.2.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

15/08 2017

v2.2.0

2.2.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

12/08 2017

v2.1.2

2.1.2.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

10/08 2017

v2.1.1

2.1.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

08/08 2017

v2.1.0

2.1.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

25/07 2017

v2.0.2

2.0.2.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

23/07 2017

v2.0.1

2.0.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

19/07 2017

v2.0.0

2.0.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 simplemenu menu maker

15/07 2017

v1.2.2

1.2.2.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

15/07 2017

v1.2.1

1.2.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

15/07 2017

v1.2.0

1.2.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

30/06 2017

v1.1.1

1.1.1.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

28/06 2017

v1.1.0

1.1.0.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

26/06 2017

v1.0.5

1.0.5.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

24/06 2017

v1.0.4

1.0.4.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

21/06 2017

v1.0.3

1.0.3.0 https://github.com/ctf0/SimpleMenu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

19/06 2017

v1.0.2

1.0.2.0 https://github.com/ctf0/simple-menu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

19/06 2017

v1.0.1

1.0.1.0 https://github.com/ctf0/simple-menu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu

18/06 2017

v1.0.0

1.0.0.0 https://github.com/ctf0/simple-menu

create a menu that support page (multiLocal 'title/ url/ prefix', nesting, template, static/dynamic, roles & permissions).

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 simplemenu