feat: Implement defensive point constraints and validation tests

This commit is contained in:
Daan Meijer
2026-06-23 11:41:20 +02:00
parent d68fc33bcb
commit cca5952470
4 changed files with 105 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class StoreMutationRequest extends FormRequest
public function rules(): array
{
return [
'amount' => ['required', 'integer'],
'amount' => ['required', 'integer', 'not_in:0', 'min:-1000', 'max:1000'],
'description' => ['required', 'string'],
'type' => ['nullable', 'string'],
'status' => ['nullable', 'string'],