Skip to content

Commit 401a0b6

Browse files
committed
Added condition for wamesk/laravel-nova-country version 4.*
1 parent 3b5937b commit 401a0b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "wamesk/laravel-nova-address-field",
33
"description": "Laravel Nova 4 Address field",
44
"type": "library",
5-
"version": "4.0.1",
5+
"version": "4.0.2",
66
"license": "proprietary",
77
"require": {
88
"wamesk/laravel-nova-country": "^1.1|^2.0|^4.0"

src/Fields/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function getCountryList(): mixed
136136
{
137137
$version = $this->getCountryPackageVersion();
138138

139-
if (Str::startsWith($version, '2.')) {
139+
if (Str::startsWith($version, ['2.', '4.'])) {
140140
return Country::query()->where(['status' => CountryStatusEnum::ENABLED])->orderBy('title')->pluck('title', 'id')->toArray();
141141
}
142142

0 commit comments

Comments
 (0)