| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Factories; |
| 4 |
|
| 5 |
class DocumentBankAccountFactory extends BaseFactory |
| 6 |
{ |
| 7 |
|
| 8 |
public function definition(): array |
| 9 |
{ |
| 10 |
return [ |
| 11 |
'id' => $this->faker->numberBetween(1,1000), |
| 12 |
'name' => $this->faker->name(), |
| 13 |
'account_number' => $this->faker->regexify('[A-Z]{2}--[0-9]{6}'), |
| 14 |
'account_number_iban' => $this->faker->boolean(30) |
| 15 |
? null |
| 16 |
: $this->faker->regexify('[A-Z]{2}--[0-9]{6}'), |
| 17 |
'swift' => strtoupper($this->faker->lexify('????') . $this->faker->numerify('####')) |
| 18 |
]; |
| 19 |
} |
| 20 |
} |
| 21 |
|