From fc2167d8adcd17f31e2c728b0e707191c26a0c64 Mon Sep 17 00:00:00 2001 From: Bogdan Mucenica Date: Thu, 12 Sep 2024 19:04:01 +0300 Subject: [PATCH] fixes #20 - https://github.com/lwwcas/laravel-countries/issues/20 (#26) --- src/database/seeders/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/seeders/Builder.php b/src/database/seeders/Builder.php index 046f4f4..fd92850 100644 --- a/src/database/seeders/Builder.php +++ b/src/database/seeders/Builder.php @@ -79,7 +79,7 @@ public static function regionsTranslations(array $regions, String $lang): void foreach ($regions as $slug => $region) { $response = CountryRegion::whereTranslation('locale', 'en') - ->whereTranslation('name', $slug) + ->whereTranslation('slug', $slug) ->first(); if ($response == null) {