wip
This commit is contained in:
@@ -32,6 +32,7 @@ class LoanOrderController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function store(LoanOrderStoreRequest $request)
|
public function store(LoanOrderStoreRequest $request)
|
||||||
{
|
{
|
||||||
|
info($request->all());
|
||||||
LoanOrder::forceCreate([
|
LoanOrder::forceCreate([
|
||||||
...$request->validated(),
|
...$request->validated(),
|
||||||
...[
|
...[
|
||||||
|
|||||||
@@ -187,28 +187,28 @@ class LoanOrderStoreRequest extends FormRequest
|
|||||||
*
|
*
|
||||||
* @example 4434345434423442
|
* @example 4434345434423442
|
||||||
*/
|
*/
|
||||||
'loan_card_number' => ['required', 'digits:16'],
|
'loan_card_number' => ['nullable', 'digits:16'],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name on card
|
* Name on card
|
||||||
*
|
*
|
||||||
* @example 'Mahmyt Allaberdiyev'
|
* @example 'Mahmyt Allaberdiyev'
|
||||||
*/
|
*/
|
||||||
'loan_card_name' => ['required', 'string', 'max:255'],
|
'loan_card_name' => ['nullable', 'string', 'max:255'],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Card expiration month
|
* Card expiration month
|
||||||
*
|
*
|
||||||
* @example 06
|
* @example 06
|
||||||
*/
|
*/
|
||||||
'loan_card_month' => ['required'],
|
'loan_card_month' => ['nullable'],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Card expiration year
|
* Card expiration year
|
||||||
*
|
*
|
||||||
* @example 2040
|
* @example 2040
|
||||||
*/
|
*/
|
||||||
'loan_card_year' => ['required'],
|
'loan_card_year' => ['nullable'],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Region (https://online.tbbank.gov.tm/api/base-app-enums)
|
* Region (https://online.tbbank.gov.tm/api/base-app-enums)
|
||||||
|
|||||||
Reference in New Issue
Block a user