CancelReason
        
        extends Model
    
    
            
            in package
            
        
    
            
            implements
                            Entity                    
    
            
            Uses
                            HasEntity,                             HasFactory,                             HasUserMorph,                             HasTranslatableAttributes                    
    
Class CancelReason.
Table of Contents
Interfaces
- Entity
 - Interface Entity.
 
Constants
- ENTITY_TYPE = 'user_cancel_reason'
 
Properties
- $admin_browse_url : string
 - $id : int
 - $is_active : int
 - $ordering : int
 - $phrase_var : string
 - $title : string
 - $appends : mixed
 - $fillable : array<string|int, string>
 - $table : mixed
 - $translatableAttributes : mixed
 
Methods
- entityId() : int
 - entityType() : string
 - factory() : CancelReasonFactory
 - getAdminBrowseUrlAttribute() : string
 - getTitleAttribute() : string
 - getUserAttribute() : mixed
 - getUserEntityAttribute() : mixed
 - isUser() : bool
 - check if $user is the user (creator) of entity.
 - moduleName() : string
 - user() : MorphTo
 - userEntity() : BelongsTo
 - userId() : int
 - userType() : string
 - newFactory() : CancelReasonFactory
 
Constants
ENTITY_TYPE
    public
        mixed
    ENTITY_TYPE
    = 'user_cancel_reason'
    
    
    
Properties
$admin_browse_url
    public
        string
    $admin_browse_url
    
    
    
    
$id
    public
        int
    $id
    
    
    
    
$is_active
    public
        int
    $is_active
    
    
    
    
$ordering
    public
        int
    $ordering
    
    
    
    
$phrase_var
    public
        string
    $phrase_var
    
    
    
    
$title
    public
        string
    $title
    
    
    
    
$appends
    protected
        mixed
    $appends
     = ['title']
    
    
    
$fillable
    protected
        array<string|int, string>
    $fillable
     = ['user_id', 'user_type', 'owner_id', 'owner_type', 'phrase_var', 'is_active', 'ordering', 'updated_at', 'created_at']
    
    
    
$table
    protected
        mixed
    $table
     = 'user_delete_reasons'
    
    
    
$translatableAttributes
    protected
        mixed
    $translatableAttributes
     = ['phrase_var']
    
    
    
Methods
entityId()
    public
                    entityId() : int
    Return values
intentityType()
    public
                    entityType() : string
    Return values
stringfactory()
    public
            static        factory(mixed $parameters) : CancelReasonFactory
    Parameters
- $parameters : mixed
 
Return values
CancelReasonFactorygetAdminBrowseUrlAttribute()
    public
                    getAdminBrowseUrlAttribute() : string
    Return values
stringgetTitleAttribute()
    public
                    getTitleAttribute() : string
    Return values
stringgetUserAttribute()
    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
stringuser()
    public
                    user() : MorphTo
    Return values
MorphTouserEntity()
    public
                    userEntity() : BelongsTo
    Return values
BelongsTouserId()
    public
                    userId() : int
    Return values
intuserType()
    public
                    userType() : string
    Return values
stringnewFactory()
    protected
            static        newFactory() : CancelReasonFactory