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

Route to your section.

$menu

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


<?php

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