D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
lactobokashi.com
/
app
/
Models
/
Filename :
ReturnAndRefundProduct.php
back
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ReturnAndRefundProduct extends Model { protected $table = "return_and_refund_products"; protected $fillable = ['return_and_refund_id', 'product_id', 'variation_id', 'variation_names', 'quantity', 'price', 'total', 'return_price', 'user_id']; protected $casts = [ 'id' => 'integer', 'return_and_refund_id' => 'integer', 'product_id' => 'integer', 'variation_id' => 'integer', 'variation_names' => 'string', 'quantity' => 'integer', 'price' => 'decimal:6', 'total' => 'decimal:6', 'return_price' => 'decimal:6', 'user_id' => 'integer' ]; public function product(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Product::class)->withTrashed(); } }