| Current Path : /home/users/unlimited/www/mpos.codeskitter.site/app/Models/ |
| Current File : /home/users/unlimited/www/mpos.codeskitter.site/app/Models/PurchaseReturnDetail.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PurchaseReturnDetail extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'business_id',
'purchase_return_id',
'purchase_detail_id',
'return_amount',
'return_qty',
];
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;
public function purchaseReturn()
{
return $this->belongsTo(PurchaseReturn::class, 'purchase_return_id');
}
public function purchaseDetail()
{
return $this->belongsTo(PurchaseDetails::class , 'purchase_detail_id');
}
}