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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html/app/Models/   drwxr-xr-x
Free 29.42 GB of 117.98 GB (24.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Models;

use 
Illuminate\Database\Eloquent\Model;
use 
Illuminate\Database\Eloquent\SoftDeletes;

class 
ProductOption extends Model
{
    protected 
$fillable = ['name''type''status'];
    use 
SoftDeletes;
    const 
ACTIVE 1;

    public static function 
CheckType($type) {
        return 
in_array($type,config('constant.product_option')['Choose']);
    }

    public static function 
getActivePluck() {
        
// return self::select('name','id','type')->active()->get();
        
return ProductOptionDescription::whereHas('productOption', function($q) {
            
$q->active();
        })->
pluck('name','option_id');
    }

    public static function 
getProductActivePluck() {
        
// return self::select('name','id','type')->active()->get();
        
return ProductOptionDescription::whereHas('productOption', function($q) {
            
$q->active();
        })->
select('name','option_id')->where('language_id',session()->get('currentLanguage'))->get();
    }

    public function 
scopeActive($query) {
        return 
$query->where('status'self::ACTIVE);
    }

    public function 
optionMultipleDescription() {
        return 
$this->hasMany('App\Models\ProductOptionDescription','option_id','id')->join('language''language.id''=''product_option_description.language_id');
    }

    public function 
productoptionDescription() {
    
        return 
$this->hasOne('App\Models\ProductOptionDescription','option_id','id')
        ->
where('language_id',session()->get('currentLanguage'));
    }

}

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