public function post_edit($galleryID) { $validation = Validator::make(Input::get(), array('galleryName' => 'required|max:60')); if ($validation->fails()) { return Redirect::to('admin/galleries'); } Galleries::edit($galleryID, Input::get('galleryName')); return Redirect::to('admin/galleries'); }