Commit 550b0702 by Francisco Salazar

orden de la categoria

parent 17cb5a0c
......@@ -17,7 +17,7 @@ class ProductCategoryShop extends Model
public function products()
{
return $this->hasMany('Onestartup\Shop\Model\ProductShop', 'category_id');
return $this->hasMany('Onestartup\Shop\Model\ProductShop', 'category_id')->orderBy("created_at", "desc");
}
public function subcategories(){
......
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