This one works for me.
RegisterController
protected $redirectTo = '/';
public function register(Request $request)
{
$this->validator($request->all())->validate();
event(new Registered($user = $this->create($request->all())));
return $this->registered($request, $user)
?: redirect($this->redirectPath());
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community