freescout/freescout-dist/database/factories/CustomerFactory.php

14 lines
405 B
PHP
Raw Normal View History

2023-12-22 19:40:32 +00:00
<?php
use App\Customer;
use Faker\Generator as Faker;
$factory->define(App\Customer::class, function (Faker $faker) {
return [
'first_name' => $faker->firstName,
'last_name' => $faker->lastName,
'job_title' => $faker->jobTitle,
'phones' => json_encode(Customer::formatPhones([['value' => $faker->phoneNumber, 'type' => Customer::PHONE_TYPE_WORK]])),
];
});