fix: [broods] Added validation
parent
217ec250f0
commit
e6a1cf019d
|
@ -26,7 +26,11 @@ class BroodsTable extends AppTable
|
|||
|
||||
public function validationDefault(Validator $validator): Validator
|
||||
{
|
||||
return $validator;
|
||||
return $validator
|
||||
->requirePresence(['name', 'url', 'organisation'], 'create')
|
||||
->notEmptyString('name')
|
||||
->notEmptyString('url')
|
||||
->url('url');
|
||||
}
|
||||
|
||||
public function genHTTPClient(Object $brood, array $options=[]): Object
|
||||
|
|
Loading…
Reference in New Issue