父節點
當前提交
edd67f6d3d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      app/Models/NewsParagraph.php

+ 1
- 1
app/Models/NewsParagraph.php 查看文件

27
     protected function paragraphImg(): Attribute
27
     protected function paragraphImg(): Attribute
28
     {
28
     {
29
         return Attribute::make(
29
         return Attribute::make(
30
-            get: fn ($value) => is_null($this->image_url) ? null :Storage::url($this->image_url),
30
+            get: fn ($value) => is_null($this->img_url) ? null :Storage::url($this->img_url),
31
         );
31
         );
32
     }
32
     }
33
 
33