2017 © Pedro Peláez
 

library ui

Admin template based on Laravel and Semantic UI

image

laravolt/ui

Admin template based on Laravel and Semantic UI

  • Monday, July 30, 2018
  • by uyab
  • Repository
  • 4 Watchers
  • 4 Stars
  • 313 Installations
  • JavaScript
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 35 % Grown

The README.md

laravolt/ui

Install

1. Register package via composer

``` bash $ composer require laravolt/ui, (*1)


## 2. Register service provider ``` php ... /* * Package Service Providers... */ Laravolt\Ui\ServiceProvider::class, ...

php artisan laravolt:link-assets, (*2)

publish configuration file php artisan vendor:publish --provider='Laravolt\Ui\ServiceProvider' there will be file config/laravolt/menu.php and example menu inside it., (*3)

/**
 * Example Menu
 */
'Main Menu' => [
    'menu' => [
        // Menu 1
        'Menu 1' => [
            'data' => [
                'icon' => 'circle outline',
                'permission' => 'read post' // for authorization
            ],
            // Sub Menu 1-*
            'menu' => [
                'Sub Menu 1-1' => ['route' => 'home'],
                'Sub Menu 1-2' => ['url' => '#'],
                'Sub Menu 1-3' => ['url' => '#'],
                ]
            ],
        // Menu 2
        'Menu 2' => ['url' => '#', 'data' => ['icon' => 'circle outline']],
    ]
],

example above will resulted like this, (*4)

Main Menu
|-- ○ Menu 1
|    |-- Sub Menu 1-1 (route: 'home')
|    |-- Sub Menu 1-2 (url: '#')
|    +-- Sub Menu 1-3 (url: '#')
+-- ○ Menu 2 (url: '#')

add your section title in key of top-level array configuration and add menus or submenus in ['menu' => [ /* add your menus here */] and add data to your menu in ['data' => [/* your key => value pair of data */] ], (*5)

The Versions

30/07 2018

dev-master

9999999-dev https://github.com/laravolt/ui

Admin template based on Laravel and Semantic UI

  Sources   Download

MIT

The Requires

 

laravel template ui admin laravolt