-
Couldn't load subscription status.
- Fork 27
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi,
I found that the migration for the QuestionTypeSeeder throws an error.

From my knowledge the create() supports only one record. The insert() supports many records but does not automatically update the timestamps. One option would be:
$questionTypes = [
[
'name' => 'multiple_choice_single_answer',
],
[
'name' => 'multiple_choice_multiple_answer',
],
[
'name' => 'fill_the_blank',
]
];
foreach ($questionTypes as $questionType) {
QuestionType::create($questionType);
};
All the best
Alex
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working