Files
project/app/Models/Incomingitem.php

37 lines
672 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Incomingitem extends Model
{
public $timestamps = false;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'incoming_id',
'name',
'article_number',
'description',
'amount',
'discount',
'tax',
'price',
'total',
];
/**
* Get the invoice the item belongs to.
*/
public function incoming(): BelongsTo
{
return $this->belongsTo(Incoming::class);
}
}