Τόπος Bundle (Topos)
A HTML Menu Generator for Laravel.
Installation
Install via the Artisan CLI:
php artisan bundle:install topos
Or download the zip and unpack into your bundles directory.
Bundle Registration
You need to register topos with your application before you can use it. Simply edit application/bundles.php and add the following to the array:
Alternatively you can add just 'topos'
and use Bundle::start('topos')
each time before you want to make a menu.
Guide
Generate a simple navigation menu (‘ul’ is default):
You can use ->link_if($test, $url, $label)
to conditionally add items, test can be any callback or boolean.
Dividers
You can use ->divider($title, $attributes)
to add dividers (non-link items); useful for sidebar menus.