|string> */ public function rules(): array { return [ 'name' => ['required', 'string', 'max:255'], 'nip' => ['required', 'string', 'max:50'], 'email' => [ 'required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id), ], 'phone' => ['required', 'string', 'max:20'], 'gender' => ['required', 'in:laki-laki,perempuan'], 'address' => ['nullable', 'string', 'max:1000'], 'division' => ['required', 'string', 'max:255'], 'position' => ['nullable', 'string', 'max:255'], 'profile_photo' => ['nullable', 'image', 'max:2048'], ]; } }