15 lines
429 B
PHP
15 lines
429 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Requests\Finance;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
final class DownloadPaymentFileRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool { return true; }
|
|
public function rules(): array { return ['mode'=>['nullable','string','in:download,view']]; }
|
|
public function mode(): string { return (string) ($this->validated('mode') ?: 'download'); }
|
|
}
|