PHP Class App\Repositories\Role\EloquentRole

Inheritance: extends App\Repositories\AbstractEloquentRepository, implements RoleInterface
Afficher le fichier Open project: ngmy/webloyer Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

byPage() public méthode

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
Résultat Illuminate\Pagination\LengthAwarePaginator