white-frame/helloquent

此包已被弃用且不再维护。未建议替代包。

以上仓库、演示器和模型工具集成于一个包中,适用于 eloquent

5.2.0.0 2016-01-19 14:59 UTC

This package is not auto-updated.

Last update: 2020-07-29 13:44:02 UTC


README

eloquent 模型的工具和行为集合。

使用

为了完整使用此包,请扩展 WhiteFrame\Helloquent\Model

use WhiteFrame\Helloquent\Model;

class User extends Model {
    protected $presenter = 'App\Presenters\UserPresenter';
    protected $transformer = 'App\Transformers\UserTransformer';
    protected $repository = 'App\Repositories\UserRepository';
    protected $controller = 'App\Http\Controllers\UserController';
    
    // Your stuff here ...
}

模型对象

演示器

使用灵活的演示器展示你的 eloquent 数据给视图。

转换器

将你的模型转换成强大的数组以供 API 使用。

仓库

适用于应用的 Eloquent 兼容仓库模式实现。

IsResource

将控制器访问绑定到模型。

更多内容

助手

为该包构建的一些助手。