* * @version 1.0.0 */ class Price extends Model { protected $fillable = [ 'inventory_id', 'cost', 'retail_price', 'tax', ]; protected $casts = [ 'cost' => 'decimal:2', 'retail_price' => 'decimal:2', 'tax' => 'decimal:2', ]; public function inventory() { return $this->belongsTo(Inventory::class); } }