|string> */ public function rules(): array { return [ 'name' => 'required|max:255', 'last_name' => 'required|max:255', 'middle_name' => 'required|max:255', 'birthday' => 'required|date', 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->route('teacher')?->user->id), 'regex:/^(([^<>()\[\]\\.,;:\s@”]+(\.[^<>()\[\]\\.,;:\s@”]+)*)|(“.+”))@((\[[0–9]{1,3}\.[0–9]{1,3}\.[0–9]{1,3}\.[0–9]{1,3}])|(([a-zA-Z\-0–9]+\.)+[a-zA-Z]{2,}))$/'], 'password' => 'required|max:255', ]; } }