From 55dc204dcf1ff6d5ee14e0b4deb98584c60503a6 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Tue, 12 Sep 2023 18:07:21 +0300 Subject: [PATCH] fix library factory --- database/factories/LibraryFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', ]; }