PHP 클래스 Silber\Bouncer\Database\Queries\Roles

파일 보기 프로젝트 열기: JosephSilber/bouncer

공개 메소드들

메소드 설명
constrainWhereAssignedTo ( Builder $query, string | Model | Illuminate\Database\Eloquent\Collection $model, array $keys = null ) : void Constrain the given roles query to those that were assigned to the given authorities.
constrainWhereIs ( Builder $query, string $role ) : Builder Constrain the given query by the provided role.
constrainWhereIsAll ( Builder $query, string $role ) : Builder Constrain the given query by all provided roles.

메소드 상세

constrainWhereAssignedTo() 공개 메소드

Constrain the given roles query to those that were assigned to the given authorities.
public constrainWhereAssignedTo ( Builder $query, string | Model | Illuminate\Database\Eloquent\Collection $model, array $keys = null ) : void
$query Illuminate\Database\Eloquent\Builder
$model string | Illuminate\Database\Eloquent\Model | Illuminate\Database\Eloquent\Collection
$keys array
리턴 void

constrainWhereIs() 공개 메소드

Constrain the given query by the provided role.
public constrainWhereIs ( Builder $query, string $role ) : Builder
$query Illuminate\Database\Eloquent\Builder
$role string
리턴 Illuminate\Database\Eloquent\Builder

constrainWhereIsAll() 공개 메소드

Constrain the given query by all provided roles.
public constrainWhereIsAll ( Builder $query, string $role ) : Builder
$query Illuminate\Database\Eloquent\Builder
$role string
리턴 Illuminate\Database\Eloquent\Builder