Download the PHP package doc88/flux-menu-control without Composer
On this page you can find all versions of the php package doc88/flux-menu-control. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download doc88/flux-menu-control
More information about doc88/flux-menu-control
Files in doc88/flux-menu-control
Package flux-menu-control
Short Description Library for implementing menu access control in Laravel applications.
License MIT
Informations about the package flux-menu-control
Flux Menu Control
Library for managing user's menu.
Requirements
- Laravel >= 6.0
- Flux Role Permission >= 1.0.2
Installation
-
Run the command below at the project root to add the package to the Laravel application:
-
In the providers list in the config/app.php file add:
-
Run the command below at the root of your project to publish the new provider:
-
Run migrations
- In your User Model add the following lines:
Usage
Doc88\FluxMenuControl\Menu Class
Class used to Create, Remove, Attach and Dettach Menus and Permission.
-
Create a Menu Item
-
Remove a Menu Item
-
Attach a permission to Menu Item
-
Dettach a permission from a Menu Item
-
Synchronize Permissions to generate the user's menu
- Get user's menu
Using the User Model
It is possible to Get the user's menu using the User class.
- List User's Menu