Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
21 lines
364 B
PHP
21 lines
364 B
PHP
<?php
|
|
|
|
namespace Modules\EcommerceFinance\Http\Requests;
|
|
|
|
use App\Abstracts\Http\FormRequest;
|
|
|
|
class ImportFile extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'source_file' => ['required', 'file', 'mimes:csv,txt', 'max:10240'],
|
|
];
|
|
}
|
|
}
|