Added owner field to DummyContentSeeder

This commit is contained in:
Dan Brown 2021-01-02 00:09:29 +00:00
parent de989ffa9a
commit d27875bad1
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -31,7 +31,7 @@ class DummyContentSeeder extends Seeder
$role = Role::getRole('viewer'); $role = Role::getRole('viewer');
$viewerUser->attachRole($role); $viewerUser->attachRole($role);
$byData = ['created_by' => $editorUser->id, 'updated_by' => $editorUser->id]; $byData = ['created_by' => $editorUser->id, 'updated_by' => $editorUser->id, 'owned_by' => $editorUser->id];
factory(\BookStack\Entities\Models\Book::class, 5)->create($byData) factory(\BookStack\Entities\Models\Book::class, 5)->create($byData)
->each(function($book) use ($editorUser, $byData) { ->each(function($book) use ($editorUser, $byData) {