PHP Trait NilPortugues\Laravel5\JsonApi\Eloquent\EloquentHelper

Show file Open project: nilportugues/laravel5-jsonapi Trait Usage Examples

Public Methods

Method Description
paginate ( NilPortugues\Laravel5\JsonApi\JsonApiSerializer $serializer, Builder $builder, integer $pageSize = null ) : Builder

Protected Methods

Method Description
columns ( NilPortugues\Laravel5\JsonApi\JsonApiSerializer $serializer, array $fields ) : array
sort ( NilPortugues\Laravel5\JsonApi\JsonApiSerializer $serializer, Builder $builder, Model $model ) : Builder

Method Details

columns() protected static method

protected static columns ( NilPortugues\Laravel5\JsonApi\JsonApiSerializer $serializer, array $fields ) : array
$serializer NilPortugues\Laravel5\JsonApi\JsonApiSerializer
$fields array
return array

paginate() public static method

public static paginate ( NilPortugues\Laravel5\JsonApi\JsonApiSerializer $serializer, Builder $builder, integer $pageSize = null ) : Builder
$serializer NilPortugues\Laravel5\JsonApi\JsonApiSerializer
$builder Illuminate\Database\Eloquent\Builder
$pageSize integer
return Illuminate\Database\Eloquent\Builder

sort() protected static method

protected static sort ( NilPortugues\Laravel5\JsonApi\JsonApiSerializer $serializer, Builder $builder, Model $model ) : Builder
$serializer NilPortugues\Laravel5\JsonApi\JsonApiSerializer
$builder Illuminate\Database\Eloquent\Builder
$model Illuminate\Database\Eloquent\Model
return Illuminate\Database\Eloquent\Builder