laravolt / ui
This package is abandoned and no longer maintained.
No replacement package was suggested.
Admin template based on Laravel and Fomantic UI
0.16.0
2022-11-17 04:46 UTC
Requires
- php: >=7.1.3
- illuminate/console: 5.6.*|5.7.*|5.8.*|6.*
- illuminate/support: 5.6.*|5.7.*|5.8.*|6.*
- lavary/laravel-menu: ^1.7.2
- stolz/assets: ^0.1.11
This package is auto-updated.
Last update: 2023-01-04 21:04:27 UTC
README
Install
1. Register package via composer
$ composer require laravolt/ui
2. Register service provider
... /* * Package Service Providers... */ Laravolt\Ui\ServiceProvider::class, ...
3. Link assets
php artisan laravolt:link-assets
SIDEBAR MENU
publish configuration file
php artisan vendor:publish --provider='Laravolt\Ui\ServiceProvider'
there will be file config/laravolt/menu.php and example menu inside it.
/** * 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
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 */] ]