inti project
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?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'); }
|
||||
}
|
||||
Reference in New Issue
Block a user