PHP Class App\Repositories\Role\EloquentRole

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

Public Methods

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

Method Details

__construct() public method

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

byPage() public method

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