/** * Store a newly created resource in storage. * * @return Response */ public function store() { $input = \Input::all(); $validator = \Validator::make($input, $this->rules()); if ($validator->fails()) { return \Redirect::back()->withErrors($validator)->withInput(); } $payment = new Payments(); $payment->fill($input)->save(); return Redirect::to('admin/settings/payment')->withSuccess(printf(trans('message.msg_update_success'), $payment->name, '')); }