MetaFox

HasUserMorph

Trait HasOwnerMorph.

Tags
mixin

HasRelationships

Table of Contents

Properties

$user  : User|null
$user_id  : int
$user_type  : string
$userEntity  : UserEntity|null

Methods

getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string

Properties

Methods

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

        
On this page

Search results