*/ class CustomerFactory extends Factory { protected $model = Customer::class; public function definition(): array { return [ 'salutation_id' => 1, 'title' => '', 'name' => fake()->lastName(), 'firstname' => fake()->firstName(), 'birthdate' => fake()->dateTimeBetween('-80 years', '-18 years')->format('Y-m-d'), 'company' => '', 'street' => fake()->streetAddress(), 'zip' => fake()->postcode(), 'city' => fake()->city(), 'email' => fake()->unique()->safeEmail(), 'phone' => fake()->phoneNumber(), 'phonebusiness' => '', 'phonemobile' => fake()->phoneNumber(), 'fax' => '', 'bank' => '', 'bank_code' => '', 'bank_account_number' => '', 'credit_card_type_id' => null, 'credit_card_number' => '', 'credit_card_expiration_date'=> null, 'participants_remarks' => '', 'miscellaneous_remarks' => '', 'country_id' => null, ]; } public function company(): static { return $this->state(fn (array $attributes) => [ 'company' => fake()->company(), ]); } }