Fix request

This commit is contained in:
James Cole 2023-03-04 22:18:37 +01:00
parent 79951453cd
commit 4657d34ae4
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -53,7 +53,8 @@ class DestroyRequest extends FormRequest
public function rules(): array public function rules(): array
{ {
$valid = 'budgets,bills,piggy_banks,rules,recurring,categories,tags,object_groups'. $valid = 'budgets,bills,piggy_banks,rules,recurring,categories,tags,object_groups'.
',accounts,asset_accounts,expense_accounts,revenue_accounts,liabilities,transactions,withdrawals,deposits,transfers'; ',accounts,asset_accounts,expense_accounts,revenue_accounts,liabilities,transactions,withdrawals,deposits,transfers'.
',not_assets_liabilities';
return [ return [
'objects' => sprintf('required|min:1|string|in:%s', $valid), 'objects' => sprintf('required|min:1|string|in:%s', $valid),