nukacode/lumen-base
最新稳定版本:1.0.1
Composer 安装命令:
composer create-project nukacode/lumen-base
包简介
The Laravel Lumen Framework with nukacode.
关键字:
README 文档
README
- Facades, Eloquent and DotEnv are enabled. Comment the lines in
bootstrap/app.phpout if you don't need them. - Configs folder added. If you want to add a config file, look to Lumen Docs.
app/Http/routes.phpcontains a/statusroute that will return a 200 response with JSON "ok".
Models
- All models return collections as an instance of
App\Support\Collection. - All models can now tap
->hashIdto get a hashed version of it's id. - All models now have
findHash(). This works the same asfind()but expects the hashed id. - All models are expected to set a
HASH_IDconstant. This will be the models salt.- This is checked in the
BaseModelconstructor and will throw an exception if it's not found.
- This is checked in the
Transformers
- Docs: Fractal
- Example Class
<?php namespace App\Transformers;
use App\Models\Video;
class VideoTransformer extends BaseTransformer {
public function transform(Video $video)
{
return [
'id' => $video->hashId
];
}
}
统计信息
- 总下载量: 411
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-11