Commit e9975bb1 by Francisco Salazar

redirect back add car, save subcategory

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