mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 08:12:17 +01:00
Added ability to archive projects and clients, fixes ST-37
This commit is contained in:
committed by
Gregor Vostrak
parent
f21a2d4bdd
commit
a69d1cb4c4
@@ -35,6 +35,16 @@ class ClientUpdateRequest extends FormRequest
|
||||
return $builder->whereBelongsTo($this->organization, 'organization');
|
||||
}))->ignore($this->client->getKey())->withCustomTranslation('validation.client_name_already_exists'),
|
||||
],
|
||||
'is_archived' => [
|
||||
'boolean',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
public function getIsArchived(): bool
|
||||
{
|
||||
assert($this->has('is_archived'));
|
||||
|
||||
return (bool) $this->input('is_archived');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user