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

Using blades #7

Merged
merged 2 commits into from
Oct 11, 2019
Merged

Using blades #7

merged 2 commits into from
Oct 11, 2019

Conversation

kikoseijo
Copy link
Contributor

Hi there, love this tool.

While implementing I seen that for having 2 simple menus DB calls are 20 queries, by using this method instead of 20 its doing only 9 queries for having 2 different menus.

Not sure if of any help, but.... here you have.

@kikoseijo
Copy link
Contributor Author

Instead of

{!! menu_builder('header') !!}

im using:

@foreach (getMenuBySlug('header')->items as $menuItem)
     @include('front.parts.menu_item', ['menu' => $menuItem])
@endforeach

Screen Shot 2019-04-23 at 21 40 40
Screen Shot 2019-04-23 at 21 39 36

@Krato Krato merged commit ac2693c into InfinetyEs:master Oct 11, 2019
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.

2 participants