24 lines
425 B
PHP
24 lines
425 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class InvoiceChargeGroupItem extends Model
|
|
{
|
|
protected $fillable = [
|
|
'group_id',
|
|
'invoice_item_id',
|
|
];
|
|
|
|
public function group()
|
|
{
|
|
return $this->belongsTo(InvoiceChargeGroup::class, 'group_id');
|
|
}
|
|
|
|
public function item()
|
|
{
|
|
return $this->belongsTo(InvoiceItem::class, 'invoice_item_id');
|
|
}
|
|
}
|