Level 30
You can just override the Register Trait Method
To do so you just need to add the Method to your Auth/AuthController.php to override its redirect path.
/**
* Handle a registration request for the application.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function register(Request $request)
{
$validator = $this->validator($request->all());
if ($validator->fails()) {
$this->throwValidationException(
$request, $validator
);
}
Auth::guard($this->getGuard())->login($this->create($request->all()));
return redirect()->route('YOURROUTE'); // Change the Redirect Path
}
1 like