parent
commit
4a1354f25f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/Api/HomePageController.php

+ 1
- 1
app/Http/Controllers/Api/HomePageController.php View File

28
     {
28
     {
29
         $locale = $locale == "tw" ? "zh_TW" : $locale;
29
         $locale = $locale == "tw" ? "zh_TW" : $locale;
30
         $result = [];
30
         $result = [];
31
-        $banners = Banner::where("visilbe", true)->get()->map(function ($record) use ($result, $locale){
31
+        $banners = Banner::where("visible", true)->get()->map(function ($record) use ($result, $locale){
32
             $result[] = [
32
             $result[] = [
33
                 "imgUrl" => $record->imgUrlLink,
33
                 "imgUrl" => $record->imgUrlLink,
34
                 "mobileImgUrl" => $record->mobileImgLink,
34
                 "mobileImgUrl" => $record->mobileImgLink,