protected function getUpdateRules()
 {
     $key = \Request::get($this->model->getKeyName());
     static::$rules['iso'] = 'required|unique:languages,iso,' . $key;
     return parent::getUpdateRules();
 }
Exemple #2
0
 protected function getUpdateRules()
 {
     $key = \Request::get($this->model->getKeyName());
     static::$rules_update['initials'] = 'required|unique:roles,initials' . $key;
     return parent::getUpdateRules();
 }
Exemple #3
0
 protected function getUpdateRules()
 {
     $key = \Request::get($this->model->getKeyName());
     static::$rules_update['email'] = 'required|email|unique:users,email,' . $key;
     return parent::getUpdateRules();
 }