Penambahan FrontEnd All-New-Manufacture
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user