file->realPath(); } public function getFilenameAttribute() { return $this->file->file_name; } public function file() { return $this->belongsTo(File::class); } }