caffeinated / menus

:pushpin: Menu generator package for the Laravel framework
https://caffeinatedpackages.com
132 stars 59 forks source link

PROPOSAL: Add ability to change menu_ or keep prepend blank #95

Open ChaosPower opened 7 years ago

ChaosPower commented 7 years ago

This will allow changing of prepended value.

@include('layouts.site-menu', ['items' => $siteMenu->roots()])

or

@include('layouts.site-menu', ['items' => $menuSiteMenu->roots()])

Instead of

@include('layouts.site-menu', ['items' => $menu_siteMenu->roots()])

Now publishes config/menu.php config file

php artisan vendor:publish --tag=caffeinated-menu

Default Config

<?php

return [
    'prepend' => 'menu_'
];