/** * Store a newly created JobItems in storage. * * @return \Response */ public function store() { $validator = \Validator::make($data = \Input::all(), JobItems::$rules); if ($validator->fails()) { return \Redirect::back()->withErrors($validator)->withInput(); } JobItems::create($data); return \Redirect::route('jobitems.index'); }