*/ public function rules(): array { return [ 'name' => ['required', 'string', 'min:3', 'max:255'], 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)], 'nis' => ['nullable', 'string', 'max:20'], 'kelompok_asal' => ['nullable', 'string', 'in:IPA,IPS'], 'foto' => ['nullable', 'image', 'mimes:jpeg,png,jpg,gif', 'max:2048'], ]; } }