CommentAttachment
        
        extends Model
    
    
            
            in package
            
        
    
            
            implements
                            Entity                    
    
            
            Uses
                            HasEntity,                             HasFactory,                             HasItemMorph                    
    
Class CommentAttachment.
Table of Contents
Interfaces
- Entity
 - Interface Entity.
 
Constants
- ENTITY_TYPE = 'comment_attachments'
 - TYPE_FILE = 'storage_file'
 - TYPE_LINK = 'link'
 - TYPE_PREVIEW = 'preview'
 - TYPE_STICKER = 'sticker'
 
Properties
- $comment_id : int
 - $download_url : string
 - $id : int
 - $image_url : string
 - $item_id : int
 - $item_type : string
 - $params : string
 - $timestamps : mixed
 - $fillable : array<string|int, string>
 - $table : mixed
 
Methods
- comment() : BelongsTo
 - entityId() : int
 - entityType() : string
 - factory() : CommentAttachmentFactory
 - getDownloadUrlAttribute() : string
 - getImageUrlAttribute() : string
 - getItemAttribute() : mixed
 - item() : MorphTo|null
 - itemId() : int
 - itemType() : string
 - moduleName() : string
 - newFactory() : CommentAttachmentFactory
 
Constants
ENTITY_TYPE
    public
        mixed
    ENTITY_TYPE
    = 'comment_attachments'
    
    
    
TYPE_FILE
    public
        mixed
    TYPE_FILE
    = 'storage_file'
    
    
    
TYPE_LINK
    public
        mixed
    TYPE_LINK
    = 'link'
    
    
    
TYPE_PREVIEW
    public
        mixed
    TYPE_PREVIEW
    = 'preview'
    
    
    
TYPE_STICKER
    public
        mixed
    TYPE_STICKER
    = 'sticker'
    
    
    
Properties
$comment_id
    public
        int
    $comment_id
    
    
    
    
$download_url
    public
        string
    $download_url
    
    
    
    
$id
    public
        int
    $id
    
    
    
    
$image_url
    public
        string
    $image_url
    
    
    
    
$item_id
    public
        int
    $item_id
    
    
    
    
$item_type
    public
        string
    $item_type
    
    
    
    
$params
    public
        string
    $params
    
    
    
    
$timestamps
    public
        mixed
    $timestamps
     = false
    
    
    
$fillable
    protected
        array<string|int, string>
    $fillable
     = ['comment_id', 'item_id', 'item_type', 'params']
    
    
    
$table
    protected
        mixed
    $table
     = 'comment_attachments'
    
    
    
Methods
comment()
    public
                    comment() : BelongsTo
    Return values
BelongsToentityId()
    public
                    entityId() : int
    Return values
intentityType()
    public
                    entityType() : string
    Return values
stringfactory()
    public
            static        factory(mixed $parameters) : CommentAttachmentFactory
    Parameters
- $parameters : mixed
 
Return values
CommentAttachmentFactorygetDownloadUrlAttribute()
    public
                    getDownloadUrlAttribute() : string
    Return values
stringgetImageUrlAttribute()
    public
                    getImageUrlAttribute() : string
    Return values
stringgetItemAttribute()
    public
                    getItemAttribute() : mixed
    item()
    public
                    item() : MorphTo|null
    Return values
MorphTo|nullitemId()
    public
                    itemId() : int
    Return values
intitemType()
    public
                    itemType() : string
    Return values
stringmoduleName()
    public
                    moduleName() : string
    Return values
stringnewFactory()
    protected
            static        newFactory() : CommentAttachmentFactory