Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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