Method | Description | |
---|---|---|
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. |
public getIsUsedByUserAttribute ( ) : boolean | ||
return | boolean |
public users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
return | Illuminate\Database\Eloquent\Relations\BelongsToMany |