someshit going on
This commit is contained in:
@@ -32,11 +32,17 @@ class Register extends BaseRegister
|
||||
|
||||
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']);
|
||||
|
||||
Reference in New Issue
Block a user