X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/8e274a5a84cc11c20c0d62f9ecc0b08cd9410305..refs/pull/270/head:/database/factories/ModelFactory.php diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php index 2840356e8..43e214386 100644 --- a/database/factories/ModelFactory.php +++ b/database/factories/ModelFactory.php @@ -52,4 +52,21 @@ $factory->define(BookStack\Role::class, function ($faker) { 'display_name' => $faker->sentence(3), 'description' => $faker->sentence(10) ]; +}); + +$factory->define(BookStack\Tag::class, function ($faker) { + return [ + 'name' => $faker->city, + 'value' => $faker->sentence(3) + ]; +}); + +$factory->define(BookStack\Image::class, function ($faker) { + return [ + 'name' => $faker->slug . '.jpg', + 'url' => $faker->url, + 'path' => $faker->url, + 'type' => 'gallery', + 'uploaded_to' => 0 + ]; }); \ No newline at end of file