¨4.0.1¨
This commit is contained in:
@@ -28,16 +28,19 @@ class OrderDownload extends Model
|
||||
*/
|
||||
protected $fillable = ['file_id'];
|
||||
|
||||
|
||||
public function getRealPathAttribute()
|
||||
{
|
||||
return $this->file->realPath();
|
||||
}
|
||||
|
||||
|
||||
public function getFilenameAttribute()
|
||||
{
|
||||
return $this->file->file_name;
|
||||
}
|
||||
|
||||
|
||||
public function file()
|
||||
{
|
||||
return $this->belongsTo(File::class);
|
||||
|
||||
Reference in New Issue
Block a user