Page tree
Skip to end of metadata
Go to start of metadata

null menu(string $route, array $menu)

Creates a sub menu for your section.


Route to your section.


Any associative array of menus. Keys hold the menu title and the values hold the URL route.


route('/foo', function() {

   menu('/foo', [
      'Menu 1' => url('/foo/menu-1'),
      'Menu 2' => url('/foo/menu-2'),
      'Menu 3' => url('/foo/menu-3')

   return view('index.html');
  • No labels