/** * undocumented function * * @return void * @author **/ public function updateDo() { $validator = $this->updateValid(); if ($validator->passes()) { $input = $this->updateInput(); $save = Donation::edit($input); if ($save) { return Redirect::route('admin.donation')->withStatuses(['edit' => 'Data Berhasil di edit!']); } return Redirect::route('admin.donation')->withErrors(['edit' => 'Data Gagal di edit!']); } return Redirect::back()->withErrors($validator)->withInput(); }