CodeCommitAccess+1-at-632418466995 преди 2 месеца
родител
ревизия
3c4f3046fb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      app/Models/NewsParagraph.php

+ 1
- 1
app/Models/NewsParagraph.php Целия файл

@@ -60,7 +60,7 @@ class NewsParagraph extends Model
60 60
     protected function paragraphVideoUrl(): Attribute
61 61
     {
62 62
         return Attribute::make(
63
-            get: fn ($value) => ($this->video_type == 2) ? Storage::disk('public')->url($this->video_url) : $this->attributes["link"],
63
+            get: fn ($value) => ($this->video_type == 2) ? Storage::disk('public')->url($this->video_url) : $this->link,
64 64
         );
65 65
     }
66 66
 }