/home/techb158/ileadtechnology.com/SSM/app/Models/inventory
NameSizeModeActions
StockCategory.php13600644editdlrm
StockItem.php19360644editdlrm
StockPurchase.php27550644editdlrm
StockPurchaseDetail.php14070644editdlrm
StockTransfer.php31340644editdlrm
StockTransferDetail.php14070644editdlrm
StockTransferReturn.php15670644editdlrm
Vendor.php21330644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/inventory/StockTransferDetail.php (1407B)
'array']; protected $primaryKey = 'id'; protected $table = 'stock_transfer_details'; protected static $logName = 'stock_purhcase_detail'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function transfer() { return $this->belongsTo('App\Models\Inventory\StockTransfer', 'stock_transfer_id'); } public function item() { return $this->belongsTo('App\Models\Inventory\StockItem', 'stock_item_id'); } public function getOption(string $option) { return array_get($this->options, $option); } public function scopeInfo($q) { return $q->with('items'); } public function scopeFilterById($q, $id) { if (! $id) { return $q; } return $q->where('id', '=', $id); } }