public function postEdit($id) { $data = $this->model->find($id); if ($data->save()) { if (Input::get('redirect_back')) { return Redirect::to(Devhook::backendRoute($this->link)); } else { return Redirect::back(); } } return Redirect::back()->withErrors($data->validator())->withInput(Input::input()); }
public function anySetMode($mode) { switch ($mode) { case 'admin': return Redirect::to(\Devhook::backendRoute()); break; // case 'edit': // return Redirect::to('/'); // break; // case 'edit': // return Redirect::to('/'); // break; default: return Redirect::to('/'); break; } }