larasoft / menus-finecut
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
dev-master
2017-07-06 13:57 UTC
Requires
- kalnoy/nestedset: 3.1 - 4.1
This package is not auto-updated.
Last update: 2017-07-31 17:31:22 UTC
README
Installation
composer require bozboz/menus
- Add
Larasoft\Menus\Providers\MenuServiceProvider::class,
to app.php
Usage
Click "Menus" in the "Content" menu in the admin and add a menu.
Add items to the menu selecting either an entity or manual text/url
In your view use the menu blade directive like so @menu(string $alias[, string $view = 'menus::menu'])
where "alias" is the alias of the menu you just created.
By default menus will be rendered using the 'menus::menu' view which will output the menu as a simple nested, unordered list.
The menu query has a 1 hour cache so changes to entities can take a while to appear. Changes made directly to the menu will clear the cache though.