| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Factories; |
| 4 |
|
| 5 |
use App\Billingo\Enums\CountryEnum; |
| 6 |
|
| 7 |
class AddressFactory extends BaseFactory |
| 8 |
{ |
| 9 |
public function definition(): array |
| 10 |
{ |
| 11 |
return [ |
| 12 |
'country_code' => $this->faker->randomElement(getEnumValues(CountryEnum::class)), |
| 13 |
'post_code' => $this->faker->regexify('[1-9]{1}[0-9]{3}'), |
| 14 |
'city' => $this->faker->city, |
| 15 |
'address' => $this->faker->address, |
| 16 |
]; |
| 17 |
} |
| 18 |
} |