PHP Класс Artesaos\Defender\Repositories\Eloquent\EloquentPermissionRepository

Наследование: extends AbstractEloquentRepository, implements Artesaos\Defender\Contracts\Repositories\PermissionRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Illuminate\Contracts\Foundation\Application $app, Artesaos\Defender\Contracts\Permission $model )
create ( string $permissionName, string $readableName = null ) : Artesaos\Defender\Contracts\Permission Create a new permission using the given name.
getActivesByUser ( $user ) : Illuminate\Database\Eloquent\Collection
getByRoles ( array $rolesIds ) : Illuminate\Database\Eloquent\Collection

Описание методов

__construct() публичный метод

public __construct ( Illuminate\Contracts\Foundation\Application $app, Artesaos\Defender\Contracts\Permission $model )
$app Illuminate\Contracts\Foundation\Application
$model Artesaos\Defender\Contracts\Permission

create() публичный метод

Create a new permission using the given name.
public create ( string $permissionName, string $readableName = null ) : Artesaos\Defender\Contracts\Permission
$permissionName string
$readableName string
Результат Artesaos\Defender\Contracts\Permission

getActivesByUser() публичный метод

public getActivesByUser ( $user ) : Illuminate\Database\Eloquent\Collection
$user
Результат Illuminate\Database\Eloquent\Collection

getByRoles() публичный метод

public getByRoles ( array $rolesIds ) : Illuminate\Database\Eloquent\Collection
$rolesIds array
Результат Illuminate\Database\Eloquent\Collection