mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-10 13:39:22 -06:00
23 lines
649 B
PHP
23 lines
649 B
PHP
<?php
|
|
|
|
/* @var $factory \Illuminate\Database\Eloquent\Factory */
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(App\Models\Message::class, function (Faker $faker) {
|
|
return [
|
|
'bot_id' => function () {
|
|
return factory(App\Models\Bot::class)->create()->id;
|
|
},
|
|
'user_id' => function () {
|
|
return factory(App\Models\User::class)->create()->id;
|
|
},
|
|
'receiver_id' => function () {
|
|
return factory(App\Models\User::class)->create()->id;
|
|
},
|
|
'chatroom_id' => function () {
|
|
return factory(App\Models\Chatroom::class)->create()->id;
|
|
},
|
|
];
|
|
});
|