Merge pull request #68 from RickyB98/master

Fix on registration error.
This commit is contained in:
Nabeel Shahzad
2017-10-01 10:12:10 -05:00
committed by GitHub

View File

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