'datetime', 'password' => 'hashed', 'hire_date' => 'date', 'tanggal_lahir' => 'date', 'otp_expires_at' => 'datetime', ]; } public function attendances() { return $this->hasMany(Attendance::class); } public function pengajuans() { return $this->hasMany(Pengajuan::class, 'id_user'); } public function todayAttendance() { return $this->attendances()->whereDate('date', today())->first(); } }