mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-10 05:29:39 -06:00
17 lines
426 B
PHP
17 lines
426 B
PHP
<?php
|
|
|
|
/* @var $factory \Illuminate\Database\Eloquent\Factory */
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(App\Models\Topic::class, function (Faker $faker) {
|
|
return [
|
|
'forum_id' => function () {
|
|
return factory(App\Models\Forum::class)->create()->id;
|
|
},
|
|
'first_post_user_id' => function () {
|
|
return factory(App\Models\User::class)->create()->id;
|
|
},
|
|
];
|
|
});
|