26 lines
577 B
PHP
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');
|
|
}
|
|
}
|