Auto commit for release 'develop' on 2025-02-22

This commit is contained in:
github-actions
2025-02-22 08:18:27 +01:00
parent a4637debe9
commit bf04ca12c1
6 changed files with 119 additions and 118 deletions

View File

@@ -65,8 +65,6 @@ class StoreRequest extends FormRequest
return $data;
}
/**
* The rules that the incoming request must be matched against.
*/

View File

@@ -45,7 +45,7 @@ class UpdateRequest extends FormRequest
*/
public function getAll(): array
{
$fields = [
$fields = [
'name' => ['name', 'convertString'],
'target_amount' => ['target_amount', 'convertString'],
'start_date' => ['start_date', 'convertDateTime'],
@@ -73,7 +73,7 @@ class UpdateRequest extends FormRequest
$piggyBank = $this->route()->parameter('piggyBank');
return [
'name' => 'min:1|max:255|uniquePiggyBankForUser:' . $piggyBank->id,
'name' => 'min:1|max:255|uniquePiggyBankForUser:'.$piggyBank->id,
'current_amount' => ['nullable', new LessThanPiggyTarget(), new IsValidPositiveAmount()],
'target_amount' => ['nullable', new IsValidZeroOrMoreAmount()],
'start_date' => 'date|nullable',