Example #1
0
 public function postEdit()
 {
     $postData = $this->request()->postVariables();
     $newCategory = new Category();
     $newCategory->hydrateFromUnserialized($postData);
     $newCategory->saveChanges();
     Redirect::to('/' . $this->baseUri())->with('msg', new TransportMessage('success', 'Category was successfully updated'))->now();
 }