$this->faker->company(), 'phone_number' => $this->faker->randomElement([ $this->faker->numerify('0812 #### ###'), $this->faker->numerify('0812 #### ####'), $this->faker->numerify('0812 #### #####'), ]), 'address' => $this->faker->address(), 'landmark' => $this->faker->streetName(), 'maps_url' => 'https://goo.gl/maps/'.$this->faker->regexify('[A-Za-z0-9]{6,10}'), 'opened_date' => $this->faker->date(), 'status' => $this->faker->randomElement(OutletStatus::cases()), ]; } public function operational(): Factory { return $this->state(fn () => ['status' => OutletStatus::OPERATIONAL]); } public function underConstruction(): Factory { return $this->state(fn () => ['status' => OutletStatus::UNDER_CONSTRUCTION]); } public function terminated(): Factory { return $this->state(fn () => ['status' => OutletStatus::TERMINATED]); } }