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,
|
|
|
|
'password' => bcrypt('password'),
|
2019-07-08 02:08:57 +02:00
|
|
|
'remember_token' => str_random(10),
|
|
|
|
'token' => str_random(64),
|
2018-10-15 07:00:48 +02:00
|
|
|
];
|
2018-10-29 04:16:17 +01:00
|
|
|
|
2018-10-15 07:00:48 +02:00
|
|
|
});
|