white-frame/helloquent

This package is abandoned and no longer maintained. No replacement package was suggested.

Repositories, Presenters and Model tools above eloquent in a all in one package

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

Set of tools and behaviour for eloquent models.

Usage

For the complete usage of the package extends 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 ...
}

Model Objects

Presenter

Present your eloquent datas for your views using a flexible presenter.

Transformer

Transform your models to powerfull arrays in your API.

Repository

Eloquent compatible repository pattern implementation for your application.

IsResource

Bind controller access to your Model.

More stuff

Helpers

Some helpers built for the package.