|
|
@ -34,8 +34,8 @@ class Product extends BaseModel |
|
|
return $this->pictures[0] ?? ''; |
|
|
return $this->pictures[0] ?? ''; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/*public function productInfo() |
|
|
|
|
|
{ |
|
|
|
|
|
return $this->hasOne(ProductInfo::class); |
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
public function supplier() |
|
|
|
|
|
{ |
|
|
|
|
|
return $this->belongsTo(Supplier::class); |
|
|
|
|
|
} |
|
|
} |
|
|
} |