public function menus()
    {
        $menus = $this->app->make('menus.collection')->all();

        $headers = ['Slug', 'Top level items', 'Active'];

        $dataset = array_map(function ($menu) {
            return [
                $menu->getSlug(),
                count($menu->items()),
                $menu->isActive() ? 'true' : 'false',
            ];
        }, $menus);

        $this->table($headers, $dataset);
    }
public function menus()
    {
        $menus = $this->app->make('menus.collection')->all();

        $headers = ['Slug', 'Top level items', 'Active'];

        $dataset = array_map(function ($menu) {
            return [
                $menu->getSlug(),
                count($menu->items()),
                $menu->isActive() ? 'true' : 'false',
            ];
        }, $menus);

        $this->table($headers, $dataset);
    }
public function menus ( ) { $ menus = $ this -> app -> make ( 'menus.collection' ) -> all ( ) ; $ headers = [ 'Slug' , 'Top level items' , 'Active' ] ; $ dataset = array_map ( function ( $ menu ) { return [ $ menu -> getSlug ( ) , count ( $ menu -> items ( ) ) , $ menu -> isActive ( ) ? 'true' : 'false' , ] ; } , $ menus ) ; $ this -> table ( $ headers , $ dataset ) ; }
Show registered menus.

## EXAMPLE

wp assely:show menus
Show registered menus .