belongsTo(Video::class); } public function getStreamUrlAttribute(): string { return route('videos.audio-track', ['video' => $this->video_id, 'track' => $this->id]); } /** Absolute local path to the file, regardless of NAS or local storage. */ public function localPath(): string { return storage_path('app/' . $this->path); } }