Make sure rules respect active flag.

This commit is contained in:
James Cole
2021-03-12 06:11:34 +01:00
parent 625e31d053
commit b0c9745982
4 changed files with 92 additions and 63 deletions

View File

@@ -46,7 +46,6 @@ class UpdateRequest extends FormRequest
public function getAll(): array
{
// return nothing that isn't explicitely in the array:
// this is the way
$fields = [
'name' => ['name', 'string'],
'code' => ['code', 'string'],
@@ -56,7 +55,6 @@ class UpdateRequest extends FormRequest
'enabled' => ['enabled', 'boolean'],
];
// this is the way.
$return = $this->getAllData($fields);
return $return;