PHP Class Corcel\UserBuilder

Inheritance: extends Illuminate\Database\Eloquent\Builder
Show file Open project: jgrossi/corcel Class Usage Examples

Public Methods

Method Description
hasMeta ( string $metaKey, string $metaValue ) : UserBuilder | static Add nested meta exists conditions to the query.
paged ( integer $perPage = 10, integer $currentPage = 1 ) : Illuminate\Database\Eloquent\Collection Paginate the results

Method Details

hasMeta() public method

Add nested meta exists conditions to the query.
public hasMeta ( string $metaKey, string $metaValue ) : UserBuilder | static
$metaKey string
$metaValue string
return UserBuilder | static

paged() public method

Paginate the results
public paged ( integer $perPage = 10, integer $currentPage = 1 ) : Illuminate\Database\Eloquent\Collection
$perPage integer
$currentPage integer
return Illuminate\Database\Eloquent\Collection