你需要重写一下 register 这个方法,在 Auth/RegisterController.php
中重写:
public function register(Request $request)
{
$this->validator($request->all())->validate();
$this->guard()->login($this->create($request->all()));
// fire your event event(new UserSignup());
return redirect($this->redirectPath());
}