Files
aso/app/Models/CorporateEmployee.php
Linksehat Staging Server 70fc1579e7 update
2024-07-12 08:41:18 +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');
}
}