public function storeAdvisor() { // If form validation passes: $advisor = new Advisor(); $advisor->name = Input::get('name'); $advisor->email = Input::get('email'); $advisor->password = Hash::make(Input::get('password')); $advisor->save(); Auth::attempt(['email' => $advisor->email, 'password' => Input::get('password')]); return Redirect::intended('advisor.dashboard'); }