src/Distilleries/Expendable/Http/Forms/Language/LanguageForm.php 1 location
|
@@ 44-50 (lines=7) @@
|
41 |
|
$this->addDefaultActions(); |
42 |
|
} |
43 |
|
|
44 |
|
protected function getUpdateRules() |
45 |
|
{ |
46 |
|
$key = \Request::get($this->model->getKeyName()); |
47 |
|
static::$rules['iso'] = 'required|unique:languages,iso,' . $key; |
48 |
|
|
49 |
|
return parent::getUpdateRules(); |
50 |
|
} |
51 |
|
} |
src/Distilleries/Expendable/Http/Forms/Role/RoleForm.php 1 location
|
@@ 42-48 (lines=7) @@
|
39 |
|
$this->addDefaultActions(); |
40 |
|
} |
41 |
|
|
42 |
|
protected function getUpdateRules() |
43 |
|
{ |
44 |
|
$key = \Request::get($this->model->getKeyName()); |
45 |
|
static::$rules_update['initials'] = 'required|unique:roles,initials' . $key; |
46 |
|
|
47 |
|
return parent::getUpdateRules(); |
48 |
|
} |
49 |
|
} |
src/Distilleries/Expendable/Http/Forms/User/UserForm.php 1 location
|
@@ 77-83 (lines=7) @@
|
74 |
|
->addDefaultActions(); |
75 |
|
} |
76 |
|
|
77 |
|
protected function getUpdateRules() |
78 |
|
{ |
79 |
|
$key = \Request::get($this->model->getKeyName()); |
80 |
|
static::$rules_update['email'] = 'required|email|unique:users,email,' . $key; |
81 |
|
|
82 |
|
return parent::getUpdateRules(); |
83 |
|
} |
84 |
|
} |