laravolt / ui
Admin template based on Laravel and Fomantic UI
Installs: 7 085
Dependents: 1
Suggesters: 1
Security: 0
Stars: 4
Watchers: 3
Forks: 2
Open Issues: 12
Language:JavaScript
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
- dev-master / 1.0.x-dev
- 0.16.0
- 0.15.0
- 0.14.9
- 0.14.8
- 0.14.7
- 0.14.6
- 0.14.5
- 0.14.4
- 0.14.3
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.0
- 0.12.1
- 0.12.0
- 0.11.0
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.1
- 0.1.0
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.7
- dev-dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
- dev-dependabot/npm_and_yarn/minimatch-3.1.2
- dev-dependabot/npm_and_yarn/eventsource-1.1.2
- dev-develop
- dev-dev-menu
- dev-dev-pjax
- dev-dev-swup
- dev-fomantic-ui
- dev-edit-appearance
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 */] ]