2023-05-15 10:03:46 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\CetakLabel\Entities;
|
|
|
|
|
|
|
|
class SubSubJob extends BaseModel
|
|
|
|
{
|
|
|
|
protected $fillable = [
|
|
|
|
'directorat_id',
|
|
|
|
'sub_directorat_id',
|
|
|
|
'job_id',
|
|
|
|
'sub_job_id',
|
|
|
|
'kode',
|
|
|
|
'name'
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
public function directorat()
|
|
|
|
{
|
2023-05-15 14:14:52 +00:00
|
|
|
return $this->belongsTo(Directorat::class);
|
2023-05-15 10:03:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function sub_directorat()
|
|
|
|
{
|
2023-05-15 14:14:52 +00:00
|
|
|
return $this->belongsTo(SubDirectorat::class);
|
2023-05-15 10:03:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function job()
|
|
|
|
{
|
2023-05-15 14:14:52 +00:00
|
|
|
return $this->belongsTo(Job::class);
|
2023-05-15 10:03:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function sub_job()
|
|
|
|
{
|
2023-05-15 14:14:52 +00:00
|
|
|
return $this->belongsTo(SubJob::class);
|
2023-05-15 10:03:46 +00:00
|
|
|
}
|
|
|
|
}
|