*/ class AssetsImportFileBuilder extends FileBuilder { /** * @inheritdoc */ protected function getDictionary(): array { return [ 'assigneeFullName' => 'Full Name', 'assigneeEmail' => 'Email', 'assigneeUsername' => 'Username', 'category' => 'Category', 'companyName' => 'Company', 'itemName' => 'item Name', 'location' => 'Location', 'manufacturerName' => 'Manufacturer', 'model' => 'Model name', 'modelNumber' => 'Model Number', 'notes' => 'Notes', 'purchaseCost' => 'Purchase Cost', 'purchaseDate' => 'Purchase Date', 'serialNumber' => 'Serial number', 'supplierName' => 'Supplier', 'status' => 'Status', 'tag' => 'Asset Tag', 'warrantyInMonths' => 'Warranty', ]; } /** * @inheritdoc */ public function definition(): array { $faker = fake(); return [ 'assigneeFullName' => $faker->name, 'assigneeEmail' => $faker->email, 'assigneeUsername' => $faker->userName, 'category' => Str::random(), 'companyName' => Str::random() . " {$faker->companySuffix}", 'itemName' => Str::random(), 'location' => "{$faker->country},{$faker->city}", 'manufacturerName' => $faker->company, 'model' => Str::random(), 'modelNumber' => Str::random(), 'notes' => $faker->sentence(5), 'purchaseCost' => rand(1, 100_000), 'purchaseDate' => $faker->date, 'serialNumber' => $faker->uuid, 'supplierName' => $faker->company, 'status' => $faker->randomElement(['Ready to Deploy', 'Archived', 'Pending']), 'tag' => Str::random(), 'warrantyInMonths' => rand(1, 12), ]; } }