laraxot / module_user_fila3
用户管理模块
0.0.1
2024-02-26 16:55 UTC
Requires
Requires (Dev)
- barryvdh/laravel-ide-helper: *
- driftingly/rector-laravel: *
- enlightn/enlightn: *
- fakerphp/faker: *
- friendsofphp/php-cs-fixer: *
- larastan/larastan: ^2.7
- laravel/pint: *
- nunomaduro/collision: *
- nunomaduro/phpinsights: *
- orchestra/testbench: *
- pestphp/pest: *
- pestphp/pest-plugin-arch: *
- pestphp/pest-plugin-laravel: *
- phpstan/phpstan-deprecation-rules: *
- phpstan/phpstan-phpunit: *
- psalm/plugin-laravel: *
- rector/rector: *
- spatie/laravel-ray: *
- symplify/phpstan-rules: *
- thecodingmachine/phpstan-safe-rule: *
- tightenco/duster: *
- vimeo/psalm: *
This package is auto-updated.
Last update: 2024-09-27 20:07:34 UTC
README
通过使用 filament 管理用户、角色和权限。
用户管理
角色管理
在项目基础中添加模块
在 laravel/Modules 文件夹内
git submodule add https://github.com/laraxot/module_user_fila3.git User
确保模块已启用
php artisan module:list
如果未启用,则启用它
php artisan module:enable User
执行迁移
php artisan module:migrate User
创建第一个账户
从 filament 文档中,我们使用
php artisan make:filament-user
该账户将无法在管理仪表板上查看任何内容,因为它没有分配任何角色。
将账户设为超级管理员
php artisan user:super-admin
现在您拥有了一个超级管理员账户,可以开始使用了。它将能够访问管理中的所有模块。
分配角色/模块
php artisan user:assign-module
账户将能够访问分配的模块。