PHP Трейт App\Traits\PermissionHasUsersTrait

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

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

Метод Описание
boot ( ) : 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.
getIsUsedByUserAttribute ( ) : boolean
hasUser ( $userName ) : boolean
users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Many-to-Many relations with user model.

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

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

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 boot ( ) : void | boolean
Результат void | boolean

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

public getIsUsedByUserAttribute ( ) : boolean
Результат boolean

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

public hasUser ( $userName ) : boolean
$userName
Результат boolean

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

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