Fix on registration error.

This commit is contained in:
Riccardo Bello 2017-09-30 11:10:56 +02:00
parent feca30c4cb
commit e085c671aa

View File

@ -30,7 +30,7 @@ class RegisterController extends Controller
*
* @var string
*/
protected $redirectTo = '/home';
protected $redirectTo = '/';
public function showRegistrationForm()
{
@ -90,9 +90,10 @@ class RegisterController extends Controller
$pilotService = app('App\Services\PilotService');
# Let's tell the service to create the pilot
if($pilotService->createPilot($data))
if($p = $pilotService->createPilot($data))
{
return $this->view('auth.registered');
//return $this->view('auth.registered');
return $p;
}
# I'm not sure if we really need to add the error something if createPilot fails?