Add to model factory

This commit is contained in:
James Brooks 2018-03-26 21:02:21 +01:00
parent 3f26f40fae
commit c4eedd2b8b

View File

@ -45,6 +45,7 @@ $factory->define(ComponentGroup::class, function ($faker) {
$factory->define(Incident::class, function ($faker) {
return [
'name' => $faker->sentence(),
'user_id' => factory(User::class)->create()->id,
'message' => $faker->paragraph(),
'status' => mt_rand(1, 4),
'visible' => 1,