This package is customized for bootstrap 4. *. If you want to change the layout for other css libraries then you need to publish resources (see 'Publish resources' section ).
composer require begicf/simple-menu
Go in 'config/app.php' file.
Find array providers and add this element to register provider:
\SimpleMenu\SimpleMenuServiceProvider::class
php artisan migrate
SQL Menu table
Name | Type |
---|---|
id | int |
parent_id | int |
title | varchar (255) |
description | varchar (255) |
order | int |
created_at | timestamp |
update_at | timestamp |
Put in view blade template
<x-menu-menu-component type="v" />
php artisan vendor:publish --provider="SimpleMenu\SimpleMenuServiceProvider"
<ul class="navbar-nav mr-auto">
<x-menu-menu-component type="v" />
</ul>