mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-13 23:19:55 -06:00
22 lines
630 B
PHP
22 lines
630 B
PHP
<?php
|
|
|
|
/* @var $factory \Illuminate\Database\Eloquent\Factory */
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(App\Models\Invite::class, function (Faker $faker) {
|
|
return [
|
|
'user_id' => function () {
|
|
return factory(App\Models\User::class)->create()->id;
|
|
},
|
|
'email' => $faker->safeEmail,
|
|
'code' => $faker->word,
|
|
'expires_on' => $faker->dateTime(),
|
|
'accepted_by' => function () {
|
|
return factory(App\Models\User::class)->create()->id;
|
|
},
|
|
'accepted_at' => $faker->dateTime(),
|
|
'custom' => $faker->text,
|
|
];
|
|
});
|