public function postNew() { $validator = Team::validateAll(Input::all()); if ($validator->fails()) { Input::flash(); return redirect()->route('team.new')->withErrors($validator->messages()->all()); } $team = new Team(); $team->name = Input::get('name'); $team->description = Input::get('description'); $team->save(); return redirect()->route('team.new')->with('success', trans('app.newTeamSuccess')); }