Fixed country show fields..

This commit is contained in:
Cüneyt Şentürk
2023-06-01 16:42:11 +03:00
parent 40b294480a
commit b7fda70b98
4 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ class Company extends Eloquent implements Ownable
protected $table = 'companies';
protected $with = ['settings'];
//protected $with = ['settings'];
/**
* The accessors to append to the model's array form.
@ -529,7 +529,7 @@ class Company extends Eloquent implements Ownable
$country = setting('company.country');
if ($country && in_array($country, trans('countries'))) {
if ($country && array_key_exists($country, trans('countries'))) {
$location[] = trans('countries.' . $country);
}