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
386 B
PHP
21 lines
386 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Common;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class Import extends FormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'import' => 'required|file|extension:' . config('excel.imports.extensions'),
|
|
];
|
|
}
|
|
}
|