Skip to content

Commit a78bf75

Browse files
authored
enhance(console): Truncate form:list submission results (#13)
1 parent 080cd71 commit a78bf75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Console/FormListCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ public function handle()
6060
})->all(),
6161
$submissions->map(function ($value) {
6262
return array_values($value->data);
63-
})->all()
63+
})->map(function ($item) {
64+
return collect($item)->map(function ($value) {
65+
return Str::limit($value, 25);
66+
})->all();
67+
})
6468
);
6569
}
6670

0 commit comments

Comments
 (0)