定制 nukacode/lumen-base 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.php out if you don't need them.
  • Configs folder added. If you want to add a config file, look to Lumen Docs.
  • app/Http/routes.php contains a /status route 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 ->hashId to get a hashed version of it's id.
  • All models now have findHash(). This works the same as find() but expects the hashed id.
  • All models are expected to set a HASH_ID constant. This will be the models salt.
    • This is checked in the BaseModel constructor and will throw an exception if it's not found.

Transformers


    <?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

GitHub 信息

  • Stars: 3
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固