PHP Трейт Laratrust\Traits\LaratrustPermissionTrait

Показать файл Открыть проект

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

Метод Описание
bootLaratrustPermissionTrait ( ) : void | boolean Boot the permission model Attach event listener to remove the many-to-many records when trying to delete Will NOT delete any records if the permission model uses soft deletes.
roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Many-to-Many relations with role model.
users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Many-to-Many relations with user model.

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

bootLaratrustPermissionTrait() публичный статический Метод

Boot the permission model Attach event listener to remove the many-to-many records when trying to delete Will NOT delete any records if the permission model uses soft deletes.
public static bootLaratrustPermissionTrait ( ) : void | boolean
Результат void | boolean

roles() публичный Метод

Many-to-Many relations with role model.
public roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Результат Illuminate\Database\Eloquent\Relations\BelongsToMany

users() публичный Метод

Many-to-Many relations with user model.
public users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Результат Illuminate\Database\Eloquent\Relations\BelongsToMany