Cetaklabel/Entities/SubJob.php

36 lines
712 B
PHP
Raw Normal View History

2023-05-15 10:03:46 +00:00
<?php
namespace Modules\CetakLabel\Entities;
class SubJob extends BaseModel
{
protected $fillable = [
'directorat_id',
'sub_directorat_id',
'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_sub_job()
{
2023-05-15 14:14:52 +00:00
return $this->hasMany(SubSubJob::class);
2023-05-15 10:03:46 +00:00
}
}