Update Module User

- Add Nik and branch,
This commit is contained in:
Daeng Deni Mardaeni
2024-08-27 14:45:50 +07:00
parent 18f0f68f1a
commit d3baaa31c1
8 changed files with 121 additions and 15 deletions

View File

@@ -5,6 +5,7 @@
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Modules\Lpj\Models\Branch;
use Spatie\Permission\Traits\HasRoles;
use Wildside\Userstamps\Userstamps;
@@ -38,6 +39,11 @@
'name',
'email',
'password',
'nik',
'branch_id',
'profile_photo_path',
'last_login_at',
'last_login_ip',
];
/**
@@ -69,5 +75,9 @@
'id' => 'string',
];
}
public function branch(){
return $this->belongsTo(Branch::class);
}
}