ldc-crm/database/factories/CustomerFactory.php

33 lines
626 B
PHP
Raw Permalink Normal View History

2021-03-14 10:45:42 +01:00
<?php
namespace Database\Factories;
use App\Models\Customer;
use Illuminate\Database\Eloquent\Factories\Factory;
class CustomerFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Customer::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition(): array
2021-03-14 10:45:42 +01:00
{
return [
2021-08-05 16:18:09 +02:00
'email' => preg_replace(
'/@example\..*/',
'@gmail.com',
$this->faker->unique()->safeEmail
),
2021-03-14 10:45:42 +01:00
];
}
}