Skip to content
Noodlewitt edited this page Nov 20, 2014 · 2 revisions

You can register various bits and pieces using laravel's events system (similar to the hooks system.

Event::listen('menu.link', function(){
	    return array (
	    	'activePattern'=>"reports/*",
	    	'icon'=>'glyphicon-signal', 
	    	'title'=>'Reports', 
	    	'location'=>action('ReportsController@anyIndex')
	    );
	});

Available Functions

  • menu.links - registers a main menu link (on left hand side). Parse in an array containing: activePattern, icon, title, location
  • nav.links - registers nav bar link (up the top). This can be expanded on to include dropdowns latrer on.
  • dashboard.item - registers a dashboard item
Clone this wiki locally