db:seed cleanup

This commit is contained in:
StudioTem committed 2023-01-24 21:54:03 +01:00
1 parent 33499107b7
commit dfac41f30a
9 files changed
+75 -18

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ class AttachmentFactory extends Factory
*/
public function definition()
{
$extension = fake()->fileExtension();
$extension = fake()->randomElement(['jpg', 'png', 'jpeg', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'csv']);
return [
'original_name' => fake()->words(2, true) . '.' . $extension,