Browse Source

fix issue

parent
commit
3c4f3046fb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Models/NewsParagraph.php

+ 1
- 1
app/Models/NewsParagraph.php View File

@@ -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
 }