PHP 트레잇 Laratrust\Traits\LaratrustPermissionTrait

파일 보기 프로젝트 열기: santigarcor/laratrust

공개 메소드들

메소드 설명
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