1 Star 0 Fork 3

Techutter/filament

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.md 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
我许我向你看齐 提交于 11个月前 . update

Filament 后台脚手架 内置商城模块

配置指南

# 安装包管理
composer install
# 创建软连接
php artisan storage:link
# 创建配置文件并配置好数据库信息
cp .\.env.example .env
# 生成APP_KEY
php artisan key:generate
# 执行迁移
php artisan migrate
# 生成超级管理员账号,由于是手机号登录的,还需要手动去users表设置下phone字段
php artisan make:filament-user
# 配置权限,并将刚刚生成的账号设置为超级管理员
php artisan shield:generate --all
php artisan shield:super-admin --user=1
# 生成模拟数据(可选)
php artisan db:seed --class=UserSeeder # 生成会员数据以及积分余额记录

七牛云对象存储配置

# 安装网址:
https://github.com/overtrue/laravel-filesystem-qiniu
# 安装完毕后在env文件配置即可
FILAMENT_FILESYSTEM_DISK=qiniu

日志查询系统配置

# 发布前端文件
php artisan log-viewer:publish
# 必须登录users表ID=1的账户,才能查看日志,否则会报权限问题
访问地址 {APP_URL}/log-viewer

常用方法

# 省市区级联:直接在资源中的form方法里面的schema,添加如下代码即可
FilamentService::getFormArea()

使用到的包

filament后台权限管理: https://github.com/bezhanSalleh/filament-shield
filament实现tree列表:https://github.com/solutionforest/filament-tree
filament实现select组件渲染tree节点:https://github.com/codewithdennis/filament-select-tree
filament实现表格布局的中继器组件:https://github.com/icetalker/filament-table-repeater
filament富文本编辑器:https://github.com/rawilk/filament-quill
API规范响应数据格式:https://github.com/jiannei/laravel-response
Laravel的日志查看器:https://github.com/opcodesio/log-viewer
微信SDK:https://github.com/overtrue/laravel-wechat
Laravel快速构建查询:https://github.com/spatie/laravel-query-builder
Laravel实现注册路由:https://github.com/spatie/laravel-route-attributes

项目截图

输入图片说明

输入图片说明

输入图片说明

输入图片说明

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/techutter/filament.git
git@gitee.com:techutter/filament.git
techutter
filament
filament
master

搜索帮助