File: D:/HostingSpaces/BVerhoeven/verhoevendak.nl/app/Komma/Navigation/FooterComposer.php
<?php
namespace Komma\Navigation;
class FooterComposer extends NavigationComposer{
public function __construct()
{
parent::__construct();
}
/**
* Provide footer with navigation
*
* @param $view
*/
public function compose($view)
{
$mainNav = \Config::get('navigation.footer_navigation');
$navPages = $this->pageService->getPagesRoutesIn($mainNav);
$navigation = $this->orderNavigationByStructure($mainNav, [$navPages]);
$view->with(['footerNav'=> $navigation]);
}
}