diff --git a/database/factories/LibraryFactory.php b/database/factories/LibraryFactory.php index 703ae27..6625fe3 100644 --- a/database/factories/LibraryFactory.php +++ b/database/factories/LibraryFactory.php @@ -23,7 +23,7 @@ public function definition() 'slug' => $this->faker->slug(2), 'title' => $this->faker->word, 'description' => $this->faker->sentence, - 'type' => $this->faker->randomElements(SkyPlugin::get()->getLibraryTypes()), + 'type' => $this->faker->randomElement(array_keys(SkyPlugin::get()->getLibraryTypes())), 'file_path' => 'https://picsum.photos/200/300', ]; }