Integrasi Login dan menu Dasar SIAKAD Operator dan Mahasiswa

This commit is contained in:
Ariyutta
2026-11-02 09:08:03 +07:00
parent b7a0c8705b
commit 43269095bf
68 changed files with 4287 additions and 216 deletions
+6
View File
@@ -87,6 +87,12 @@ class User extends Authenticatable
})->withoutObjectCaching();
}
/** Atur ulang kata sandi oleh petugas; $actor dan $ip dipakai akun lama untuk kolom audit. */
public function resetPassword(#[\SensitiveParameter] string $password, string $actor, ?string $ip = null): void
{
$this->forceFill(['password' => $password])->save();
}
public function hasRole(Role|string ...$roles): bool
{
foreach ($roles as $role) {