Ejemplo n.º 1
0
 public function register()
 {
     $user = $this->candidateRepo->newCandidate();
     $manager = new RegisterManager($user, Input::all());
     $manager->save();
     return Redirect::route('home');
 }
Ejemplo n.º 2
0
 public function register()
 {
     $user = $this->candidateRepo->newCandidate();
     $manager = new RegisterManager($user, Input::all());
     if ($manager->save()) {
         return Redirect::route('home');
     }
     return Redirect::back()->withInput()->withErrors($manager->getErrors());
 }