Ursprung
Commit
3c4f3046fb
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      app/Models/NewsParagraph.php

+ 1
- 1
app/Models/NewsParagraph.php Datei anzeigen

60
     protected function paragraphVideoUrl(): Attribute
60
     protected function paragraphVideoUrl(): Attribute
61
     {
61
     {
62
         return Attribute::make(
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
 }