2018-10-15 07:00:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Model Factories
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This directory should contain each of the model factory definitions for
|
|
|
|
| your application. Factories provide a convenient way to generate new
|
|
|
|
| model instances for testing / seeding your application's database.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2018-10-29 04:16:17 +01:00
|
|
|
$factory->define(App\Models\ClientContact::class, function (Faker $faker) {
|
2018-10-15 07:00:48 +02:00
|
|
|
return [
|
2018-10-29 04:16:17 +01:00
|
|
|
'first_name' => $faker->firstName,
|
|
|
|
'last_name' => $faker->lastName,
|
|
|
|
'phone' => $faker->phoneNumber,
|
|
|
|
'email_verified_at' => now(),
|
|
|
|
'email' => $faker->unique()->safeEmail,
|
2020-04-30 13:45:47 +02:00
|
|
|
'send_email' => true,
|
2018-10-29 04:16:17 +01:00
|
|
|
'password' => bcrypt('password'),
|
2019-09-26 15:00:51 +02:00
|
|
|
'remember_token' => \Illuminate\Support\Str::random(10),
|
2019-11-27 11:27:24 +01:00
|
|
|
'contact_key' => \Illuminate\Support\Str::random(40),
|
2018-10-15 07:00:48 +02:00
|
|
|
];
|
|
|
|
});
|