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


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

namespace App\Models;

use 
Illuminate\Database\Eloquent\Model;

class 
Product extends Model
{

    protected 
$dates = ['deleted_at'];

    protected 
$fillable = [
        
'code''Type_barcode''name''cost''price''unit_id''unit_sale_id''unit_purchase_id',
        
'stock_alert''category_id''sub_category_id''is_variant','is_imei',
        
'tax_method''image''brand_id''is_active''note',
    ];

    protected 
$casts = [
        
'category_id' => 'integer',
        
'sub_category_id' => 'integer',
        
'unit_id' => 'integer',
        
'unit_sale_id' => 'integer',
        
'unit_purchase_id' => 'integer',
        
'is_variant' => 'integer',
        
'is_imei' => 'integer',
        
'brand_id' => 'integer',
        
'is_active' => 'integer',
        
'cost' => 'double',
        
'price' => 'double',
        
'stock_alert' => 'double',
        
'TaxNet' => 'double',
    ];

    public function 
ProductVariant()
    {
        return 
$this->belongsTo('App\Models\ProductVariant');
    }

    public function 
PurchaseDetail()
    {
        return 
$this->belongsTo('App\Models\PurchaseDetail');
    }

    public function 
SaleDetail()
    {
        return 
$this->belongsTo('App\Models\SaleDetail');
    }

    public function 
QuotationDetail()
    {
        return 
$this->belongsTo('App\Models\QuotationDetail');
    }

    public function 
category()
    {
        return 
$this->belongsTo('App\Models\Category');
    }

    public function 
unit()
    {
        return 
$this->belongsTo('App\Models\Unit''unit_id');
    }

    public function 
unitPurchase()
    {
        return 
$this->belongsTo('App\Models\Unit''unit_purchase_id');
    }

    public function 
unitSale()
    {
        return 
$this->belongsTo('App\Models\Unit''unit_sale_id');
    }

    public function 
brand()
    {
        return 
$this->belongsTo('App\Models\Brand');
    }

    public function 
unsoldSerials()
    {
        return 
$this->hasMany('App\Models\SerialExpiryPurchase','product_id','id')->where('status','unsold');
    }

}

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