NASER fix file upload for products and return the address

This commit is contained in:
gholak tala
2026-05-17 16:39:53 +00:00
parent 5bb4a36f87
commit 3adff03152
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ class Product extends Model
return $this->hasOne(Wallet::class)->where('owner',auth()->user()->id);
}
public function file(){
return $this->belongsTo(File::class, 'original_image_id');
return $this->belongsTo(File::class);
}
public function price(){
return $this->hasOne(Price::class)->orderBy('id','desc');