fstar / stronghold
fangstar stronghold
v0.1.3
2024-10-07 06:37 UTC
Requires
- php: >=7.0.0
- fstar/task: ^2.0
- illuminate/contracts: *
- illuminate/support: *
- laravel/framework: *
README
介绍
房星科技基础架构
软件架构
laravel
安装教程
- composer require fstar/stronghold
- php artisan vendor:publish --provider=Fstar\Stronghold\FsStrongholdServiceProvider
- .env 文件增加配置
DB_HOST= DB_PORT=3306 DB_DATABASE= DB_USERNAME= DB_PASSWORD=
REDIS_PREFIX= REDIS_CLIENT=predis REDIS_HOST= REDIS_PASSWORD= REDIS_PORT=6379 REDIS_DB=31 REDIS_DB_CACHE=32 REDIS_SESSION_DB=33
4.增加会话检查中间件 app/Http/Kernel.php $routeMiddleware
'session_check' => \Fstar\Stronghold\Http\Middleware\SessionCheck::class,
5.执行migrate创建数据表
php .\artisan migrate
#### 使用说明
######
#### 参与贡献
1. 房星科技