UserRelationHistory
        
        extends Model
    
    
            
            in package
            
        
    
            
            implements
                            Entity,                             ActivityFeedSource                    
    
            
            Uses
                            HasEntity,                             HasUserMorph,                             HasFeed                    
    
Class UserRelationHistory.
Table of Contents
Interfaces
- Entity
 - Interface Entity.
 - ActivityFeedSource
 - Interface ActivityFeedSource.
 
Constants
- ENTITY_TYPE = 'user_relation_history'
 
Properties
- $id : int
 - $relation_id : int
 - $timestamps : mixed
 - $user_id : int
 - $user_type : string
 - $fillable : array<string|int, string>
 - $table : mixed
 
Methods
- activity_feed() : MorphOne|null
 - Morph Relation.
 - entityId() : int
 - entityType() : string
 - gender() : BelongsTo
 - getActivityFeedAttribute() : mixed
 - getUserAttribute() : mixed
 - getUserEntityAttribute() : mixed
 - isUser() : bool
 - check if $user is the user (creator) of entity.
 - moduleName() : string
 - owner() : BelongsTo
 - relationship() : HasOne
 - relationWithUser() : BelongsTo
 - toActivityFeed() : FeedAction|null
 - user() : MorphTo
 - userEntity() : BelongsTo
 - userId() : int
 - userType() : string
 - getRelationshipTextAttribute() : string|null
 
Constants
ENTITY_TYPE
    public
        mixed
    ENTITY_TYPE
    = 'user_relation_history'
    
    
    
Properties
$id
    public
        int
    $id
    
    
    
    
$relation_id
    public
        int
    $relation_id
    
    
    
    
$timestamps
    public
        mixed
    $timestamps
     = false
    
    
    
$user_id
    public
        int
    $user_id
    
    
    
    
$user_type
    public
        string
    $user_type
    
    
    
    
$fillable
    protected
        array<string|int, string>
    $fillable
     = ['user_id', 'user_type', 'relation_id', 'relation_with']
    
    
    
$table
    protected
        mixed
    $table
     = 'user_relation_histories'
    
    
    
Methods
activity_feed()
Morph Relation.
    public
                    activity_feed() : MorphOne|null
    Tags
Return values
MorphOne|nullentityId()
    public
                    entityId() : int
    Return values
intentityType()
    public
                    entityType() : string
    Return values
stringgender()
    public
                    gender() : BelongsTo
    Return values
BelongsTogetActivityFeedAttribute()
    public
                    getActivityFeedAttribute() : mixed
    getUserAttribute()
    public
                    getUserAttribute() : mixed
    getUserEntityAttribute()
    public
                    getUserEntityAttribute() : mixed
    isUser()
check if $user is the user (creator) of entity.
    public
                    isUser(User $user) : bool
    Parameters
- $user : User
 
Return values
boolmoduleName()
    public
                    moduleName() : string
    Return values
stringowner()
    public
                    owner() : BelongsTo
    Return values
BelongsTorelationship()
    public
                    relationship() : HasOne
    Return values
HasOnerelationWithUser()
    public
                    relationWithUser() : BelongsTo
    Return values
BelongsTotoActivityFeed()
    public
                    toActivityFeed() : FeedAction|null
    Return values
FeedAction|nulluser()
    public
                    user() : MorphTo
    Return values
MorphTouserEntity()
    public
                    userEntity() : BelongsTo
    Return values
BelongsTouserId()
    public
                    userId() : int
    Return values
intuserType()
    public
                    userType() : string
    Return values
stringgetRelationshipTextAttribute()
    protected
                    getRelationshipTextAttribute() : string|null