22 lines
417 B
PHP
22 lines
417 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\V1\Payment;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class PaymentActionRequest extends FormRequest
|
||
|
|
{
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function rules(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'reason' => ['nullable', 'string', 'max:500'],
|
||
|
|
'transaction_id' => ['nullable', 'string', 'max:100'],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|