PHPackages                             coffeecodemx/wildcard-permissions - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. coffeecodemx/wildcard-permissions

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

coffeecodemx/wildcard-permissions
=================================

0.1.0(4mo ago)09MITPHPPHP ^8.1|^8.2|^8.3|^8.4

Since Mar 15Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/coffeecode-frank-vera/laravel-wildcard-permissions)[ Packagist](https://packagist.org/packages/coffeecodemx/wildcard-permissions)[ Docs](https://github.com/coffeecode-frank-vera/laravel-wildcard-permissions)[ RSS](/packages/coffeecodemx-wildcard-permissions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Laravel Wildcard Permission
===========================

[](#laravel-wildcard-permission)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/coffeecode-frank-vera/laravel-wildcard-permissions/blob/main/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/920ee39606c04061980760d4877010c1009a69c1413f225e69548dda443f8779/68747470733a2f2f706f7365722e707567782e6f72672f636f66666565636f64652d6672616e6b2d766572612f6c61726176656c2d77696c64636172642d7065726d697373696f6e732f76)](https://packagist.org/packages/coffeecodemx/wildcard-permissions)[![Total Downloads](https://camo.githubusercontent.com/4cd83c706328cbd77d80aeda7faf40a979f7d09b27aaf2fc4cc51c64bc529cf7/68747470733a2f2f706f7365722e707567782e6f72672f636f66666565636f64652d6672616e6b2d766572612f6c61726176656c2d77696c64636172642d7065726d697373696f6e732f646f776e6c6f616473)](https://packagist.org/packages/coffeecodemx/wildcard-permissions)[![Build Status](https://camo.githubusercontent.com/7106f0dcc3b41e56224e5f61b9dfaebe87421534e4ea9d7686472e9776a476c7/68747470733a2f2f7472617669732d63692e636f6d2f796f75722d757365726e616d652f796f75722d7265706f2e7376673f6272616e63683d6d61696e)](https://travis-ci.com/coffeecode-frank-vera/laravel-wildcard-permissions)

A powerful permission management library for Laravel applications.

Features
--------

[](#features)

- Role-based access control (RBAC)
- Fine-grained permission management
- Flexible permission assignment
- Easy integration with Laravel's authentication system
- Lightweight and efficient

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 8.12, 9.x, 10.x, 11.x, or 12.x

Installation
------------

[](#installation)

You can install this package via Composer. Run the following command:

```
composer require coffeecodemx/wildcard-permissions
```

The package will be automatically discovered by Laravel (no need to manually register the service provider).

Next, publish the configuration and migration files with the following command

```
php artisan vendor:publish --provider="CoffeeCode\WildcardPermissions\WildcardPermissionsServiceProvider"
```

Now you'll see a new configuration file in /config directory, just do the changes needed for table names and classes. A recommended change for a basic usage is to change under pivot\_names.model\_id to you model id which usually is user\_id

Now run the migrations

```
php artisan migrate
```

Add the traits to the model you wish to have permissions

```
