Download the PHP package cwsps154/users-roles-permissions without Composer
On this page you can find all versions of the php package cwsps154/users-roles-permissions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cwsps154/users-roles-permissions
More information about cwsps154/users-roles-permissions
Files in cwsps154/users-roles-permissions
Package users-roles-permissions
Short Description Filament User & Roles & Permissions
License MIT
Informations about the package users-roles-permissions
Filament Users Roles Permissions
Filament User & Roles & Permissions for Filament v4.
Requirements
- PHP 8.2+
- Laravel 10.0+
- Filament 4.0+
Installation
Install Using Composer
Usage/Examples
Add this into your Filament PannelProvider class panel()
You can also update UserResource using setUserResource(UserResource::class) in the plugin
You can create custom UserResource and extend CWSPS154\UsersRolesPermissions\Filament\Clusters\UserManager\Resources\UserResource as CoreUserResource
Add the CWSPS154\UsersRolesPermissions\Models\HasRole trait in User Model
And the User model should implements these interfaces's Spatie\MediaLibrary\HasMedia, Filament\Models\Contracts\HasAvatar and Filament\Models\Contracts\FilamentUser
Also don't forget add these in you User model
Run
By default, you will get the user which have email [email protected] & password admin@123.
Note: For the user which is_admin user have all permission by default.
You can publish the config file users-roles-permissions.php, by running this command
you can create additional permissions using cwsps-permissions.php config file.
The updated permissions can sync to database using this command
Note:Override may do in random manner for packages, the project config have more priority
In your languages directory, add an extra translation for the mobile field by propaganistas/laravel-phone
Note:run this command to publish lang folder
Screenshots
All versions of users-roles-permissions with dependencies
codewithdennis/filament-select-tree Version ^4.0
filament/filament Version ^4.0
ysfkaya/filament-phone-input Version ^4.0
wildside/userstamps Version ^2.4
filament/spatie-laravel-media-library-plugin Version ^4.0
spatie/laravel-package-tools Version ^1.15.0
erlandmuchasaj/laravel-gzip Version ^1.1
php-ffmpeg/php-ffmpeg Version ^v1.3.1