*/ class CustomerFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'first_name' => $this->faker->firstName(), 'last_name' => $this->faker->lastName(), 'email' => $this->faker->unique()->safeEmail(), 'phone' => $this->faker->phoneNumber(), 'secondary_phone' => $this->faker->optional(0.3)->phoneNumber(), 'address' => $this->faker->streetAddress(), 'city' => $this->faker->city(), 'state' => $this->faker->stateAbbr(), 'zip_code' => $this->faker->postcode(), 'notes' => $this->faker->optional(0.4)->paragraph(), 'status' => $this->faker->randomElement(['active', 'inactive']), 'last_service_date' => $this->faker->optional(0.7)->dateTimeBetween('-2 years', 'now'), ]; } }