'datetime', 'password' => 'hashed', ]; } // ← tambah 2 method ini di bawah casts() public function isAdmin(): bool { return $this->role === 'admin'; } public function isStaff(): bool { return $this->role === 'staff'; } }