File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,6 @@ public function timezones()
7171
7272 public function getFlagIconAttribute (): ?string
7373 {
74- return " flag- { $ this ->alpha2 }" ;
74+ return ' flag- ' . strtolower ( $ this ->alpha2 ) ;
7575 }
7676}
Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ public function getLanguageFlagIconAttribute(): ?string
4343 {
4444 return match ($ this ->language ?->alpha2) {
4545 'ar ' => 'flag-ar_arab ' ,
46- default => " flag- { $ this ->language ?->alpha2}" ,
46+ default => ' flag- ' . strtolower ( $ this ->language ?->alpha2) ,
4747 };
4848 }
4949
5050 public function getCountryFlagIconAttribute (): ?string
5151 {
52- return " flag- { $ this ->country ?->alpha2}" ;
52+ return ' flag- ' . strtolower ( $ this ->country ?->alpha2) ;
5353 }
5454}
You can’t perform that action at this time.
0 commit comments