23 lines
468 B
PHP
23 lines
468 B
PHP
<?php
|
|
|
|
namespace App\Domains\Ticket\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class AdminAppTicketRefundRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/** @return array<string, list<string|object>> */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'refund_type' => ['required', 'string', Rule::in(['partial', 'total'])],
|
|
];
|
|
}
|
|
}
|