This repository has been archived on 2025-12-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2025-10-20 08:57:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
|
|
|
|
|
class LineItem extends Model
|
|
|
|
|
{
|
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'invoice_id',
|
|
|
|
|
'position',
|
2025-11-19 10:12:45 +01:00
|
|
|
'is_section',
|
2025-10-20 08:57:51 +02:00
|
|
|
'title',
|
|
|
|
|
'description',
|
2025-11-26 10:05:43 +01:00
|
|
|
'unit_id',
|
2025-10-20 08:57:51 +02:00
|
|
|
'quantity',
|
|
|
|
|
'price',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function invoice()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Invoice::class);
|
|
|
|
|
}
|
2025-11-26 10:05:43 +01:00
|
|
|
|
|
|
|
|
public function unit()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Unit::class);
|
|
|
|
|
}
|
2025-10-20 08:57:51 +02:00
|
|
|
}
|