getAdapter()->getPathPrefix(); return [ 'uploaded_by' => rand(1, 10), // Also assuming that the user seeder has ran before 'team_id' => rand(1, 3), // Assuming you create 3 teams beforehand 'name' => $this->faker->file($prefix . 'factory_files', $prefix . 'uploads', false), 'caption' => $this->faker->sentence(), 'description' => $this->faker->paragraphs(3, true), 'fs_location' => $this->faker->file($prefix . 'factory_files', $prefix . 'uploads'), 'extension' => 'txt', 'size' => rand(1, 1000) // random fake size between 0 bytes and 1 mb ]; } }