PHPackages                             boukjijtarik/woorolemanager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. boukjijtarik/woorolemanager

ActiveLibrary

boukjijtarik/woorolemanager
===========================

A Laravel 12 package for WooCommerce Role &amp; Permission Management

02PHP

Since Aug 7Pushed 9mo agoCompare

[ Source](https://github.com/djeytkey/Mokhlif-Roles-Permissions)[ Packagist](https://packagist.org/packages/boukjijtarik/woorolemanager)[ RSS](/packages/boukjijtarik-woorolemanager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WooRoleManager - Laravel 12 Package
===================================

[](#woorolemanager---laravel-12-package)

A comprehensive Laravel 12 package for WooCommerce Role &amp; Permission Management with direct database integration using Eloquent ORM. **This package is designed to work with your existing User model and controllers.**

Features
--------

[](#features)

- **Works with Existing Models**: Integrates with your existing User model and controllers
- **Direct WooCommerce Database Integration**: Uses Eloquent ORM to connect directly to WooCommerce database
- **Role-Based Access Control**: Complete role and permission management system
- **Dynamic Sidebar Navigation**: Sidebar changes based on user roles
- **Modern UI**: Beautiful, responsive interface with Tailwind CSS
- **Laravel 12 Compatible**: Built specifically for Laravel 12
- **Artisan Commands**: Built-in commands for syncing roles and permissions
- **Middleware Support**: Custom middleware for role and permission checking

Integration with Existing Models
--------------------------------

[](#integration-with-existing-models)

This package is designed to work alongside your existing User model and controllers. It adds role functionality through a trait that can be mixed into your existing User model.

### Adding Role Functionality to Your User Model

[](#adding-role-functionality-to-your-user-model)

**Important**: You need to manually add the `HasRoles` trait to your existing User model. The package will not automatically do this.

Add the `HasRoles` trait to your existing User model:

```
