mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
fix: Import validation
This commit is contained in:
@@ -615,7 +615,7 @@ trait CanImportRecords
|
||||
{
|
||||
$fileRules = [
|
||||
'extensions:csv,txt',
|
||||
function (string $attribute, mixed $value, Closure $fail) {
|
||||
fn (): Closure => function (string $attribute, mixed $value, Closure $fail) {
|
||||
$csvStream = $this->getUploadedFileStream($value);
|
||||
|
||||
if (! $csvStream) {
|
||||
|
||||
Reference in New Issue
Block a user