*/ class UsersImportFileBuilder extends FileBuilder { /** * @inheritdoc */ protected function getDictionary(): array { return [ 'companyName' => 'Company', 'email' => 'email', 'employeeNumber' => 'Employee Number', 'firstName' => 'First Name', 'lastName' => 'Last Name', 'location' => 'Location', 'phoneNumber' => 'Phone Number', 'position' => 'Job Title', 'username' => 'Username', ]; } /** * @inheritdoc */ public function definition(): array { $faker = fake(); return [ 'companyName' => $faker->company, 'email' => Str::random(32) . "@{$faker->freeEmailDomain}", 'employeeNumber' => $faker->uuid, 'firstName' => $faker->firstName, 'lastName' => $faker->lastName, 'location' => "{$faker->city}, {$faker->country}", 'phoneNumber' => $faker->phoneNumber, 'position' => $faker->jobTitle, 'username' => Str::random(), ]; } }