Build a Menu with Recursive Functions

View [layout.blade.php]

1
2
3
<?php

HomeController::displayMenu('nav nav-second-level collapse');