mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Added owner field to DummyContentSeeder
This commit is contained in:
parent
de989ffa9a
commit
d27875bad1
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user