Download the PHP package atif/laravel-role-manager without Composer
On this page you can find all versions of the php package atif/laravel-role-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atif/laravel-role-manager
More information about atif/laravel-role-manager
Files in atif/laravel-role-manager
Package laravel-role-manager
Short Description A Laravel package for managing roles and permissions with full CRUD and UI.
License MIT
Informations about the package laravel-role-manager
Laravel Role & Permission Manager
A premium, production-ready Laravel package for managing roles and permissions with a beautiful Tailwind CSS & Alpine.js powered UI. Built on top of the industry-standard spatie/laravel-permission package.
(Optional: Add your screenshot here)
Features
- Professional UI: Built with advanced Tailwind CSS (glassmorphism, transitions) and Alpine.js.
- Modal-Based Workflow: Create and edit roles/permissions without page reloads.
- Real-time Feedback: Global toast notifications for CRUD operations.
- Service Layer Architecture: Clean, maintainable code following Laravel best practices.
- Advanced Role Assignment: Easily assign multiple permissions to roles directly from the UI.
- Form Request Validation: Robust backend validation for all inputs.
Prerequisites
- PHP ^8.2
- Laravel ^10.0 or ^11.0 or ^12.0
- Tailwind CSS (for the UI to render correctly)
- Alpine.js (for modals and toasts)
Installation
1. Install the Package
Install the package via composer:
2. Publish Assets
Publish the configuration, migrations, and views:
3. Run Migrations
Run the migrations to create the necessary tables:
Setup
1. Add the Trait to your User Model
Include the HasRoles trait in your App\Models\User model:
2. Configure Tailwind CSS
Ensure your tailwind.config.js includes the package views so the styles are generated:
Usage
Accessing the Dashboard
Once installed, you can access the management interface at:
- Roles:
/roles - Permissions:
/permissions
Middleware Protection
By default, the routes are open. You should protect them in your App\Providers\RouteServiceProvider or by wrapping them in your own route group with middleware:
Configuration
You can customize the package behavior in config/RoleManager.php:
layout: The base layout your views should extend (default:layouts.app).middleware: Global middleware for the package routes.prefix: URL prefix for the routes.
Credits
- Author: Mohammad Atif
- Built with: Spatie Laravel Permission
License
The MIT License (MIT). Please see License File for more information.