NETBien.backend/app/Models/SaleItem.php

39 lines
675 B
PHP

<?php namespace App\Models;
/**
* @copyright (c) 2025 Notsoweb Software (https://notsoweb.com) - All Rights Reserved
*/
use Illuminate\Database\Eloquent\Model;
/**
* Descripción
*
* @author Moisés Cortés C. <moises.cortes@notsoweb.com>
*
* @version 1.0.0
*/
class SaleItem extends Model
{
protected $fillable = [
'sale_id',
'sim_card_id',
'package_id',
];
public function sale()
{
return $this->belongsTo(Sale::class);
}
public function simCard()
{
return $this->belongsTo(SimCard::class);
}
public function package()
{
return $this->belongsTo(Packages::class);
}
}