31 lines
853 B
PHP
31 lines
853 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\InvoiceBillingAddress;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<InvoiceBillingAddress>
|
|
*/
|
|
class InvoiceBillingAddressFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'salutation_key' => fake()->randomElement(['mr', 'mrs', 'diverse']),
|
|
'title' => fake()->optional()->randomElement(['Dr.', 'Prof.']),
|
|
'name' => fake()->company(),
|
|
'address1' => fake()->streetAddress(),
|
|
'address2' => fake()->optional()->secondaryAddress(),
|
|
'postal_code' => fake()->postcode(),
|
|
'city' => fake()->city(),
|
|
'country_code' => 'DE',
|
|
];
|
|
}
|
|
}
|