You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
587 B
21 lines
587 B
<?php
|
|
|
|
use App\Entities\Projects\Issue;
|
|
use App\Entities\Projects\Project;
|
|
use App\Entities\Users\User;
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(Issue::class, function (Faker $faker) {
|
|
return [
|
|
'project_id' => function () {
|
|
return factory(Project::class)->create()->id;
|
|
},
|
|
'title' => $faker->words(3, true),
|
|
'body' => $faker->sentences(3, true),
|
|
'creator_id' => function () {
|
|
return factory(User::class)->create()->id;
|
|
},
|
|
'status_id' => 0,
|
|
'priority_id' => 1,
|
|
];
|
|
});
|