PHP Class App\Repositories\User\EloquentUser

Inheritance: extends App\Repositories\AbstractEloquentRepository, implements UserInterface
Show file Open project: ngmy/webloyer Class Usage Examples

Public Methods

Method Description
__construct ( Model $user ) : void Create a new repository instance.
byPage ( integer $page = 1, integer $limit = 10 ) : Illuminate\Pagination\LengthAwarePaginator Get paginated users.

Method Details

__construct() public method

Create a new repository instance.
public __construct ( Model $user ) : void
$user Illuminate\Database\Eloquent\Model
return void

byPage() public method

Get paginated users.
public byPage ( integer $page = 1, integer $limit = 10 ) : Illuminate\Pagination\LengthAwarePaginator
$page integer Page number
$limit integer Number of users per page
return Illuminate\Pagination\LengthAwarePaginator