tharindu/laravel-permission-ui

A Laravel package to manage roles and permissions with UI implementation.

v1.0.0 2024-06-01 20:32 UTC

This package is auto-updated.

Last update: 2024-10-31 00:33:09 UTC


README

Latest Version on Packagist Total Downloads

A Laravel package to manage roles and permissions with UI implementation using Bootstrap 5.

Installation

You can install the package via composer:

composer require tharindu/laravel-permission-ui

Usage

Generate Role Based Permissions UI

Run the following artisan command to generate the UI for role-based permissions:

php artisan permissions

Set User Permissions UI

Run the following artisan command to generate the UI for setting user permissions:

php artisan permissions

Publishing Views

If you want to customize the views, you can publish them using the following command:

php artisan vendor --tag=views

This will publish the views to the resources/views/vendor/laravelpermissionui directory.

Example Views

  • Role Management View: resources/views/vendor/laravelpermissionui/roles.blade.php
  • User Permissions View: resources/views/vendor/laravelpermissionui/permissions.blade.php

Contributing

Feel free to contribute by making a pull request or opening an issue.

License

The MIT License (MIT). Please see License File for more information.