someshit going on

This commit is contained in:
nurmuhammet committed 2025-09-22 18:31:00 +05:00
1 parent a04c5b1f00
commit 4911a37cfd
9 files changed
+194

No files matched your search

+6
View File
@@ -32,11 +32,17 @@ protected function getPhoneNumberFormComponent(): TextInput
protected function beforeValidate(): void
{
info(['$this->data' => $this->data]);
if (isset($this->data['phone_number'])) {
$this->data['phone_number'] = str_replace(' ', '', $this->data['phone_number']);
}
}
protected function afterRegister(): void
{
module('SMS')->verify($this->data['phone_number']);
}
protected function mutateFormDataBeforeRegister(array $data): array
{
$data['phone_number'] = str_replace(' ', '', $data['phone_number']);