23 lines
491 B
PHP
23 lines
491 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\V1\Wallet;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class InitiateTopUpRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'amount' => ['required', 'numeric', 'min:5', 'max:150'],
|
|
'idempotency_key' => ['required', 'string', 'max:100'],
|
|
'return_url' => ['nullable', 'url', 'max:255'],
|
|
];
|
|
}
|
|
}
|