Files
kulakpos_web/app/Models/VatStateItem.php
eko54r 05fd3230b8
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 5m14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped
update marketing
2026-05-14 11:55:22 +07:00

28 lines
496 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class VatStateItem extends Model
{
use HasFactory;
protected $fillable = [
'parent_vat_id',
'child_vat_id',
'type',
];
public function parentVat()
{
return $this->belongsTo(Vat::class, 'parent_vat_id');
}
public function childVat()
{
return $this->belongsTo(Vat::class, 'child_vat_id');
}
}