父节点
当前提交
edd67f6d3d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      app/Models/NewsParagraph.php

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

@@ -27,7 +27,7 @@ class NewsParagraph extends Model
27 27
     protected function paragraphImg(): Attribute
28 28
     {
29 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