erikgall / menus
There is no license information available for the latest version (v1.1.0) of this package.
MyBarn menu manager for the laravel framework.
v1.1.0
2015-08-23 17:35 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-15 16:29:34 UTC
README
$menu = $menus->build('siteMenu', function ($m) {
$m->add('MAIN NAVIGATION', ['class' => 'header']);
$dashboard = $m->add('Dashboard', ['url' => '#', 'class' => 'treeview']);
$dashboard->link->wrap('span')
->fa('dashboard')
->iconLeft();
$dashboard->add('Settings', ['url' => route('admin.dashboard')])->link->wrap('span')
->fa('circle-o');
$page = $m->add('Pages', ['url' => route('admin.page.index')]);
$page->link->wrap('span')
->fa('newspaper-o');
return $m;
});