Penambahan FrontEnd All-New-Manufacture

This commit is contained in:
pand03
2026-01-31 14:23:04 +07:00
parent 1b2e320b2b
commit 4feb21dcbc
2891 changed files with 426849 additions and 135 deletions

View File

@@ -18,9 +18,12 @@ class User extends Authenticatable
* @var array<int, string>
*/
protected $fillable = [
'nomer',
'name',
'username',
'email',
'password',
'level_pegawai',
];
/**
@@ -41,4 +44,12 @@ class User extends Authenticatable
protected $casts = [
'email_verified_at' => 'datetime',
];
public $with = ['levelPegawai'];
public function levelPegawai()
{
return $this->hasOne(LevelPegawai::class, 'level_code', 'level_pegawai');
}
}