25 lines
647 B
PHP
25 lines
647 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class CustomersFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'id' => $this->faker->randomDigit(),
|
|
'hashcode' => $this->faker->uuid(),
|
|
'email' => $this->faker->unique()->safeEmail(),
|
|
'country' => $this->faker->randomElement([56,442, 250]), // ISO Country value for Belgium, Luxembourg and France
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
];
|
|
}
|
|
}
|