Commit bc3891fa by Francisco Salazar

subcategory function

parent 3f8fe8ec
......@@ -39,6 +39,11 @@ class ProductShop extends Model
return $this->belongsTo('Onestartup\Shop\Model\ProductCategoryShop', 'category_id');
}
public function subcategory()
{
return $this->belongsTo('Onestartup\Shop\Model\ProductSubCategoryShop', 'subcategory_id');
}
public function user()
{
return $this->belongsTo('App\User', 'user_id');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment