File: /home/slfopp7cb1df/public_html/inventorypacket.com/app/Models/AdjustmentDetail.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AdjustmentDetail extends Model
{
protected $fillable = [
'id', 'product_id', 'adjustment_id', 'quantity', 'type', 'product_variant_id',
];
protected $casts = [
'adjustment_id' => 'integer',
'product_id' => 'integer',
'quantity' => 'double',
'product_variant_id' => 'integer',
];
public function adjustment()
{
return $this->belongsTo('App\Models\Adjustment');
}
public function product()
{
return $this->belongsTo('App\Models\Product');
}
}