本项目代码使用 PHP 框架 Laravel 5.7 开发,本地开发环境使用 Laravel Valet。
克隆 laravel-bbs
源代码到本地:
> git clone [email protected]:oiuv/laravel-bbs.git
composer install
cp .env.example .env
你可以根据情况修改 .env
文件里的内容,如数据库连接、缓存、邮件设置等。
php artisan key:generate
$ php artisan migrate --seed
初始的用户角色权限已使用数据迁移生成,1号用户为最高管理员。
至此, 安装完成 ^_^。
扩展包 | 一句话描述 | 本项目应用场景 |
---|---|---|
Intervention/image | 图片处理功能库 | 用于图片裁切 |
guzzlehttp/guzzle | HTTP 请求套件 | 请求百度翻译 API |
predis/predis | Redis 官方首推的 PHP 客户端开发包 | 缓存驱动 Redis 基础扩展包 |
barryvdh/laravel-debugbar | 页面调试工具栏 (对 phpdebugbar 的封装) | 开发环境中的 DEBUG |
spatie/laravel-permission | 角色权限管理 | 角色和权限控制 |
mewebstudio/Purifier | 用户提交的 Html 白名单过滤 | 帖子内容的 Html 安全过滤,防止 XSS 攻击 |
hieu-le/active | 选中状态 | 顶部导航栏选中状态 |
z-song/laravel-admin | 管理后台 | 模型管理后台、配置信息管理后台 |
viacreative/sudo-su | 用户切换 | 开发环境中快速切换登录账号 |
laravel/horizon | 队列监控 | 队列监控命令与页面控制台 /horizon |