Files
aso/app/Models/CorporateEmployee.php
Linksehat Staging Server ce024c2bcd merge
2023-05-08 08:50:15 +07:00

28 lines
561 B
PHP
Executable File

<?php
namespace App\Models;
use App\Traits\Blameable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class CorporateEmployee extends Model
{
use HasFactory, SoftDeletes, Blameable;
protected $fillable = [
'corporate_id',
'member_id',
'branch_code',
'division_id',
'nik',
'status'
];
public function division()
{
return $this->belongsTo(CorporateDivision::class, 'division_id');
}
}