wip
This commit is contained in:
@@ -35,6 +35,7 @@ class ProfileController extends Controller
|
|||||||
'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 @@ class UpdateUserProfileRequest extends FormRequest
|
|||||||
* @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 @@ class ProfileResponse extends JsonResource
|
|||||||
'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