mardi 2 octobre 2018

Laraver, Lavary Menu bootstarp style

I am new in Laravel. in my project I want to add a navigation bar. I followed the following link steps:

https://github.com/lavary/laravel-menu#menu-as-bootstrap-3-navbar

And everything works perfect except the design of the menu. Indeed when I use:

{!! $MyNavBar->asUl() !!}

It shows the menu as a basic list. But based on the tutorial I should use the below syntax to use bootstrap3 style.

@include(config('laravel-menu.views.bootstrap-items'), ['items' => $mainNav->roots()])

But it works the same as " {!! $MyNavBar->asUl() !!}" and shows the menu as a simple HTML list.

I use the bootstrap3 style in the head file.

So I would be happy if someone let me know how can I style the lavary menu.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire