Commit e9975bb1 by Francisco Salazar

redirect back add car, save subcategory

parent 41ef8589
......@@ -95,7 +95,7 @@ public function add(Product $product)
\Session::put('cart', $cart);
return redirect()->route('cart.show');
return redirect()->back();
}
......
......@@ -19,6 +19,7 @@ class ProductShop extends Model
'active',
'publication_date',
'category_id',
'subcategory_id',
'category_sat_id',
'cover',
'extra1',
......
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