Download the PHP package reksmey/filament-spatie-roles-permissions without Composer
On this page you can find all versions of the php package reksmey/filament-spatie-roles-permissions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download reksmey/filament-spatie-roles-permissions
More information about reksmey/filament-spatie-roles-permissions
Files in reksmey/filament-spatie-roles-permissions
Package filament-spatie-roles-permissions
Short Description filament-spatie-roles-permissions
License MIT
Homepage https://github.com/reksmey/filament-spatie-roles-permissions
Informations about the package filament-spatie-roles-permissions
Screenshot
Description
This plugin is built on top of Spatie's Permission package.
Installation
You can install the package via composer:
Since the package depends on Spatie's Permission package. You have to publish the migrations by running:
Now you should add any other configurations needed for the Spatie-Permission package.
Usage
You can add this to your form method in your UserResource
Advance Usage
You can publish permissions seeders in additional permissions. Sometimes you may add more action such as download-pdf, export, etc.
Customize RoleResource
-
publish service provider
-
add the package to the
extra.laravel.dont-discover
key incomposer.json
, e.g. -
publish RoleResource
- you can customize RoleResource in App\Filament
For authorization, Filament will observe any model policies that are registered in your app
Hope you enjoy it ❤️
Security
If you discover any security related issues, please create an issue.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-spatie-roles-permissions with dependencies
filament/filament Version ^2.0
illuminate/support Version ^8.0
spatie/laravel-permission Version ^5.4