Download the PHP package nyoncode/laravel-permission-extended without Composer
On this page you can find all versions of the php package nyoncode/laravel-permission-extended. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nyoncode/laravel-permission-extended
More information about nyoncode/laravel-permission-extended
Files in nyoncode/laravel-permission-extended
Package laravel-permission-extended
Short Description Wildcard permission matching, super-admin gate, Blade directives and Livewire support built on spatie/laravel-permission.
License MIT
Informations about the package laravel-permission-extended
Laravel Permission Extended
Wildcard permissions, super-admin gate, auto middleware registration, Blade directives and Livewire support — all built on spatie/laravel-permission.
Support
| Laravel 10 | Laravel 11 | Laravel 12 | Laravel 13 | |
|---|---|---|---|---|
| PHP 8.2 | ✅ | ✅ | ✅ | - |
| PHP 8.3 | ✅ | ✅ | ✅ | ✅ |
| PHP 8.4 | ✅ | ✅ | ✅ | ✅ |
| PHP 8.5 | — | ✅ | ✅ | ✅ |
Installation
The install command will publish config, Spatie migrations, run migrations and optionally add the trait to your User model.
Manual Setup
Change the HasRoles import on your User model — from Spatie to this package:
Do not use both Spatie's and this package's
HasRoleson the same model — this one already includes Spatie's internally.
Features
Wildcard Permissions
@can('admin.*'), Gate::allows('admin.*') and middleware('permission:admin.*') all work transparently.
Super-Admin Role
Configured via config/permission-extended.php:
Users with this role pass every Gate::allows() / @can() / $user->can() check automatically. No need to assign individual permissions.
With Spatie's teams on, only a global assignment counts — a super-admin can do everything everywhere, not only while one team is current:
A global role with ordinary permissions — an administrator across all teams, who can do what the role carries and nothing more — works the same way: its permissions count in every team.
See Teams and Global Roles.
Automatic Middleware Registration
Spatie's middleware is registered automatically — no manual setup in bootstrap/app.php:
Disable via 'register_middleware' => false in config.
Blade Directives
Native @can('admin.*') also works.
Livewire Integration
Cache Management
Clears both Spatie's permission cache and the wildcard pattern cache.
Documentation
- Installation
- Wildcard Permissions
- Blade Directives
- Middleware
- Livewire
- Reactive Updates
- Teams and Global Roles
- Configuration
Testing
License
MIT
All versions of laravel-permission-extended with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/auth Version ^10.0|^11.0|^12.0|^13.0
illuminate/container Version ^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
nyoncode/laravel-package-toolkit Version ^2.0.1
spatie/laravel-permission Version ^6.0