Skip to content

Conversation

ChaosPower
Copy link

@ChaosPower ChaosPower commented Jun 13, 2017

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_'
];

This will allow 

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

Instead of

```
@include('layouts.site-menu', ['items' => $menu_siteMenu->roots()])
```
@ChaosPower ChaosPower changed the title PROPOSAL: Add ability to change menu_ or keep blank prepend PROPOSAL: Add ability to change menu_ or keep prepend blank Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant