Download the PHP package tonystore/livewire-permission-manager without Composer
On this page you can find all versions of the php package tonystore/livewire-permission-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package livewire-permission-manager
livewire-permission-manager
Package that provides a graphical interface to manage roles and permissions.
REQUIREMENTS
Version Compatibility Livewire
Livewire | Livewire Permission Manager |
---|---|
2.x | 0.2.x |
3.x | 0.3.x |
INSTALLATION VIA COMPOSER
Step 1: Composer
Run this command line in console.
Step 2: Publish Assets
Publish Config File
Publish Views
Publish the views only if any modifications to the interfaces are required.
Publish Migrations
Publishes migrations, only if a new column is created for the detail of a role or permission.
Publish Lang
Publish the translations in case you wish to modify any of them.
Usage
By default, Tailwind is used to create the role and permissions management interface, but you can also choose the Bootstrap theme.
Configure templates
You have 2 alternatives to use with this package, using the blade directives or using the laravel components.
Includes the component that contains the scripts and styles needed for the graphic interface.
To remove a role, SweetAlert is used, so you must have it in your design, and it must be before the script component. Note that you must import it after the Livewire scripts.
Select a Modal design
You will be able to select among the types of manners that the package will have, at the moment only a list type model is available, which is configured here:
Customized page
Here you define the array of numbers for the paging options.
Change tables name
Here you assign the names of the tables to be able to run the migration. By default it uses the tables listed in the Laravel Permission package.
Exclude roles
Here you define the roles you want to exclude from Livewire queries for display and modification. By default you will have an empty array.
Column name
Here you define the name of the new column that will be created in the roles and permissions table defined, with this you can add a description to each role or permission created, by default the name of the column is description. By default the name.
If you mark as true the option to add the description column, you must have previously generated that column in the respective database table.
Route
Set your own prefix and midlewares and name for the role management path and permissions. By default you will have the following:
Now, once everything is configured, you will be able to access the path to manage your roles.
All versions of livewire-permission-manager with dependencies
spatie/laravel-permission Version ^3.0 || ^4.0 || ^5.1 || ^6.1
php Version ^7.0|^8.0