rodzic
commit
a8fae971d4
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1
    1
      app/Http/Controllers/Api/EsgController.php
  2. 1
    1
      app/Models/Esg.php

+ 1
- 1
app/Http/Controllers/Api/EsgController.php Wyświetl plik

@@ -64,7 +64,7 @@ class EsgController extends Controller
64 64
             "banner" => [
65 65
                 "img_pc" => $esg->banner_pc_url,
66 66
                 "img_mobile" => $esg->banner_mobile_url,
67
-                "img_alt" => $esg->getTranslation("img_alt", $locate, false),
67
+                "img_alt" => $esg->getTranslation("banner_alt", $locate, false),
68 68
                 "text" => $esg->description ?? "",
69 69
             ],
70 70
             "paragraphs" => $this->prepareOutputContent($esg->paragraphs->toArray(), $locate)

+ 1
- 1
app/Models/Esg.php Wyświetl plik

@@ -19,7 +19,7 @@ class Esg extends Model
19 19
     ];
20 20
     protected $appends = ["banner_pc_url", "banner_mobile_url"];
21 21
 
22
-    public $translatable = ['title', 'banner_alt', 'description', 'img_alt'];
22
+    public $translatable = ['title', 'banner_alt', 'description'];
23 23
 
24 24
     public function paragraphs(){
25 25
         return $this->hasMany(EsgParagraph::class)->orderBy('order');