Esempio n. 1
0
 public function addgroup()
 {
     $this->groups();
     $this->error = null;
     //clear errors
     $errors = $this->validateGroup($this->post());
     $this->error = $errors;
     if (!$errors->has()) {
         StoreGroup::add($this->post('groupName'));
         $this->redirect('/dashboard/store/products/', 'groupadded');
     }
 }