d2d.emegrendeles.hu/app/Models/ProfitCenterSupplierCode.php

24 lines
489 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class ProfitCenterSupplierCode extends BaseAuditable
{
use SoftDeletes;
protected $guarded = ['id', 'created_at', 'updated_at'];
public function profitCenter(): BelongsTo
{
return $this->belongsTo(ProfitCenter::class);
}
public function supplier(): BelongsTo
{
return $this->belongsTo(Supplier::class);
}
}