simedkom/app/Models/IssueManagementGovernmentAgency.php
2025-10-13 08:35:36 +07:00

26 lines
577 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\Pivot;
class IssueManagementGovernmentAgency extends Pivot
{
protected $table = 'issue_managements_government_agencies';
protected $fillable = [
'issue_management_id',
'government_agency_id',
];
public function issueManagement()
{
return $this->belongsTo(IssueManagement::class, 'issue_management_id', 'id');
}
public function GovernmentAgency()
{
return $this->belongsTo(GovernmentAgency::class, 'government_agency_id', 'id');
}
}