Actualizacuion de Rama Kquiroz
This commit is contained in:
@@ -19,6 +19,10 @@ class Category extends Model
|
||||
return $this->hasMany(CategoryTranslation::class);
|
||||
}
|
||||
|
||||
public function coverImage(){
|
||||
return $this->belongsTo(Upload::class, 'cover_image');
|
||||
}
|
||||
|
||||
public function products(){
|
||||
return $this->hasMany(Product::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user