/** * Process a form to create a talk. * * @return mixed The response. */ public function processCreateTalk() { $talk = new Talk(); $talk->number = Input::get('number'); $talk->subject = Input::get('subject'); $talk->locale_id = Input::get('locale_id'); try { TalkService::createTalk($talk); $this->success(trans('messages.talkCreated')); return Redirect::route('talks.list'); } catch (ValidationException $e) { return Redirect::route('talks.create')->withInput(Input::all())->withErrors($e->getValidator()); } catch (Exception $e) { return $this->unexpected($e); } }