RoleScope
        
        extends BaseScope
    
    
            
            in package
            
        
    
    
    
Class BaseScope.
Table of Contents
Properties
- $roles : array<string|int, mixed>
 
Methods
- apply() : mixed
 - applyQueryBuilder() : void
 - getAllowRoles() : array<string|int, string>
 - getRoles() : array<string|int, mixed>
 - likeOperator() : string
 - return the case-insensitive LIKE operator bases on the current database driver.
 - setRole() : RoleScope
 - setRoles() : RoleScope
 - alias() : string
 
Properties
$roles
    private
        array<string|int, mixed>
    $roles
    
    
    
    
Methods
apply()
    public
                    apply(Builder $builder, Model $model) : mixed
    Parameters
- $builder : Builder
 - $model : Model
 
Tags
applyQueryBuilder()
    public
                    applyQueryBuilder(Builder $builder) : void
    Parameters
- $builder : Builder
 
getAllowRoles()
    public
            static        getAllowRoles() : array<string|int, string>
    Return values
array<string|int, string>getRoles()
    public
                    getRoles() : array<string|int, mixed>
    Return values
array<string|int, mixed>likeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
    public
                    likeOperator() : string
    Return values
stringsetRole()
    public
                    setRole([string|null $role = null ]) : RoleScope
    Parameters
- $role : string|null = null
 
Return values
RoleScopesetRoles()
    public
                    setRoles([array<string|int, mixed>|null $roles = null ]) : RoleScope
    Parameters
- $roles : array<string|int, mixed>|null = null
 
Return values
RoleScopealias()
    protected
                    alias(string $table, string $column) : string
    Parameters
- $table : string
 - $column : string