Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/5.3' into 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 22, 2016
2 parents 6a507d1 + 3481314 commit 6e26cd0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion src/Illuminate/Foundation/Auth/RegistersUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public function register(Request $request)

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

return redirect($this->redirectPath());
return $this->registered($request, $user)
?: redirect($this->redirectPath());
}

/**
Expand All @@ -46,4 +47,15 @@ protected function guard()
{
return Auth::guard();
}

/**
* The user has been registered.
*
* @param \Illuminate\Http\Request $request
* @param mixed $user
* @return mixed
*/
protected function registered(Request $request, $user)
{
}
}
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/ListenerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ protected function getDefaultNamespace($rootNamespace)
protected function getOptions()
{
return [
['event', null, InputOption::VALUE_REQUIRED, 'The event class being listened for.'],
['event', 'e', InputOption::VALUE_REQUIRED, 'The event class being listened for.'],

['queued', null, InputOption::VALUE_NONE, 'Indicates the event listener should be queued.'],
['queued', 'q', InputOption::VALUE_NONE, 'Indicates the event listener should be queued.'],
];
}
}

0 comments on commit 6e26cd0

Please sign in to comment.