erikgall / menus by erikgall

MyBarn menu manager for the laravel framework.
22
1
2
Package Data
Maintainer Username: erikgall
Maintainer Contact: erik@mybarnapp.com (Erik Galloway)
Package Create Date: 2015-06-25
Package Last Update: 2015-08-23
Language: PHP
License: Unknown
Last Refreshed: 2024-11-22 03:05:26
Package Statistics
Total Downloads: 22
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Menu/Item Manager for Laravel 5.1

$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;
    });