Skip to content

Commit

Permalink
Update Register.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Apr 1, 2024
1 parent 22befc3 commit 133e038
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/panels/src/Pages/Auth/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ public function register(): ?RegistrationResponse

$this->callHook('beforeRegister');

$this->record = $this->handleRegistration($data);
$user = $this->handleRegistration($data);

$this->form->model($this->record)->saveRelationships();
$this->form->model($user)->saveRelationships();

$this->callHook('afterRegister');

return $this->record;
return $user;
});

event(new Registered($user));
Expand Down

0 comments on commit 133e038

Please sign in to comment.