mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-01 08:16:55 -04:00
22 lines
440 B
PHP
22 lines
440 B
PHP
<?php
|
|
|
|
namespace Modules\JobPortal\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class CompanyTerm extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'jp_company_term';
|
|
protected $fillable = [
|
|
'term_id',
|
|
'company_id'
|
|
];
|
|
public function term()
|
|
{
|
|
return $this->hasOne(Terms::class, 'id', 'term_id')->with(['translations']);
|
|
}
|
|
}
|