laraxot/module_user_fila3

用户管理模块


README

通过使用 filament 管理用户、角色和权限。

用户管理

create_user set_password

角色管理

roles list

在项目基础中添加模块

在 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

账户将能够访问分配的模块。

团队管理