['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', Rule::unique('users')->ignore(Auth::id())], 'foto' => ['nullable', 'image', 'mimes:jpeg,png,jpg', 'max:2048'], 'password' => ['nullable', 'string', 'min:8', 'confirmed'], ]; } public function attributes(): array { return [ 'nama_lengkap' => 'Nama Lengkap', 'email' => 'Alamat Email', 'foto' => 'Foto Profil', 'password' => 'Password Baru', ]; } }