wip
This commit is contained in:
1 parent
afeefc7aed
commit
4d75c110e9
3 files changed
+7
No files matched your search
@@ -35,6 +35,7 @@ public function store(UpdateUserProfileRequest $request): JsonResponse
|
|||||||
'options->card_number' => $request->card_number,
|
'options->card_number' => $request->card_number,
|
||||||
'options->card_month' => $request->card_month,
|
'options->card_month' => $request->card_month,
|
||||||
'options->card_year' => $request->card_year,
|
'options->card_year' => $request->card_year,
|
||||||
|
'options->card_name' => $request->card_name,
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($request->password) {
|
if ($request->password) {
|
||||||
|
|||||||
@@ -71,6 +71,11 @@ public function rules(): array
|
|||||||
* @example 2049
|
* @example 2049
|
||||||
*/
|
*/
|
||||||
'card_year' => ['sometimes', Rule::in(array_keys(DateHelperRepository::staticNumberYears()))],
|
'card_year' => ['sometimes', Rule::in(array_keys(DateHelperRepository::staticNumberYears()))],
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @example Nurmuhammet Allanov
|
||||||
|
*/
|
||||||
|
'card_name' => ['sometimes', 'string', 'max:255'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,6 +25,7 @@ public function toArray(Request $request): array
|
|||||||
'card_number' => $this->getOption('card_number'),
|
'card_number' => $this->getOption('card_number'),
|
||||||
'card_month' => $this->getOption('card_month'),
|
'card_month' => $this->getOption('card_month'),
|
||||||
'card_year' => $this->getOption('card_year'),
|
'card_year' => $this->getOption('card_year'),
|
||||||
|
'card_name' => $this->getOption('card_name'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user