release
This commit is contained in:
@ -27,7 +27,7 @@ class Product extends Model
|
||||
protected $guarded = ['id'];
|
||||
// protected $fillable = [];
|
||||
// protected $hidden = [];
|
||||
public $translatable = ['title', 'tip', 'description', 'body', 'feature_overview', 'feature_spec', 'seo_keyword', 'seo_description'];
|
||||
public $translatable = ['title', 'description', 'body', 'feature_overview', 'feature_spec', 'seo_keyword', 'seo_description'];
|
||||
protected $casts = [
|
||||
'photos' => 'array',
|
||||
];
|
||||
@ -53,6 +53,11 @@ class Product extends Model
|
||||
| RELATIONS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
public function productRelateds()
|
||||
{
|
||||
return $this->belongsToMany(Product::class, 'product_product_related', 'product_id', 'product_related_id');
|
||||
}
|
||||
|
||||
public function productCatalog()
|
||||
{
|
||||
return $this->belongsTo(ProductCatalog::class, 'product_catalog_id');
|
||||
|
Reference in New Issue
Block a user