Skip to content

Commit

Permalink
Revert "Extract registered event and login to registered method" (lar…
Browse files Browse the repository at this point in the history
…avel#29875)

This reverts commit 708975a.
  • Loading branch information
bakerkretzmar authored and taylorotwell committed Sep 5, 2019
1 parent 7588040 commit 3ace0b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Foundation/Auth/RegistersUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public function register(Request $request)
{
$this->validator($request->all())->validate();

$user = $this->create($request->all());
event(new Registered($user = $this->create($request->all())));

$this->guard()->login($user);

return $this->registered($request, $user)
?: redirect($this->redirectPath());
Expand All @@ -55,8 +57,6 @@ protected function guard()
*/
protected function registered(Request $request, $user)
{
event(new Registered($user));

$this->guard()->login($user);
//
}
}

0 comments on commit 3ace0b9

Please sign in to comment.