Files
online.tbbank.gov.tm-larave…/app/Http/Requests/OnlinePaymentStoreRequest.php

21 lines
495 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class OnlinePaymentStoreRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'orderId' => ['required', 'string', 'max:50', 'exists:online_payment_histories,orderId'],
];
}
}