X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ddb7f33868ea499ab8f48a7062f145e8c0fbe02f..refs/pull/2515/head:/database/factories/ModelFactory.php diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php index ddf3c295d..405e5fcf4 100644 --- a/database/factories/ModelFactory.php +++ b/database/factories/ModelFactory.php @@ -21,7 +21,7 @@ $factory->define(\BookStack\Auth\User::class, function ($faker) { ]; }); -$factory->define(\BookStack\Entities\Bookshelf::class, function ($faker) { +$factory->define(\BookStack\Entities\Models\Bookshelf::class, function ($faker) { return [ 'name' => $faker->sentence, 'slug' => Str::random(10), @@ -29,7 +29,7 @@ $factory->define(\BookStack\Entities\Bookshelf::class, function ($faker) { ]; }); -$factory->define(\BookStack\Entities\Book::class, function ($faker) { +$factory->define(\BookStack\Entities\Models\Book::class, function ($faker) { return [ 'name' => $faker->sentence, 'slug' => Str::random(10), @@ -37,7 +37,7 @@ $factory->define(\BookStack\Entities\Book::class, function ($faker) { ]; }); -$factory->define(\BookStack\Entities\Chapter::class, function ($faker) { +$factory->define(\BookStack\Entities\Models\Chapter::class, function ($faker) { return [ 'name' => $faker->sentence, 'slug' => Str::random(10), @@ -45,7 +45,7 @@ $factory->define(\BookStack\Entities\Chapter::class, function ($faker) { ]; }); -$factory->define(\BookStack\Entities\Page::class, function ($faker) { +$factory->define(\BookStack\Entities\Models\Page::class, function ($faker) { $html = '
' . implode('
', $faker->paragraphs(5)) . ''; return [ 'name' => $faker->sentence,