File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public function timezones()
7171
7272 public function getFlagIconAttribute (): ?string
7373 {
74- return @file_exists (base_path ( " packages/ flag-icons-circle/resources/svg/{ $ this ->alpha2 } . svg" ) )
74+ return @file_exists (__DIR__ . ' /../../../../ flag-icons-circle/resources/svg/' . $ this ->alpha2 . ' . svg' )
7575 ? "flag- {$ this ->alpha2 }"
7676 : null ;
7777 }
Original file line number Diff line number Diff line change @@ -43,17 +43,17 @@ public function getLanguageFlagIconAttribute(): ?string
4343 {
4444 return match ($ this ->language ?->alpha2) {
4545 'ar ' => 'flag-ar_arab ' ,
46- default => @file_exists (base_path ( " packages/ flag-icons-circle/resources/svg/{ $ this ->language ?->alpha2} . svg" ) )
46+ default => @file_exists (__DIR__ . ' /../../../../ flag-icons-circle/resources/svg/' . $ this ->language ?->alpha2. ' . svg' )
4747 ? "flag- {$ this ->language ?->alpha2}"
48- : (@file_exists (base_path ( " packages/ flag-icons-circle/resources/svg/{ $ this ->country ?->alpha2} . svg" ) )
48+ : (@file_exists (__DIR__ . ' /../../../../ flag-icons-circle/resources/svg/' . $ this ->country ?->alpha2. ' . svg' )
4949 ? "flag- {$ this ->country ?->alpha2}"
5050 : null ),
5151 };
5252 }
5353
5454 public function getCountryFlagIconAttribute (): ?string
5555 {
56- return @file_exists (base_path ( " packages/ flag-icons-circle/resources/svg/{ $ this ->country ?->alpha2} . svg" ) )
56+ return @file_exists (__DIR__ . ' /../../../../ flag-icons-circle/resources/svg/' . $ this ->country ?->alpha2. ' . svg' )
5757 ? "flag- {$ this ->country ?->alpha2}"
5858 : null ;
5959 }
You can’t perform that action at this time.
0 commit comments