Commit 535db319 by Angel MAS

create product info by default

parent f2602540
......@@ -98,6 +98,15 @@ class AdminProductController extends Controller
$product->save();
}
$info = ProductInfo::create([
'unity' => 'Pieza',
'purchase_price' => 0,
'sale_price' => 0,
'quantity' => 0,
'reserve_amount' => 0,
'product_id' => $product->id
]);
return redirect()
->route('admin.shop.product.edit', $product->id)
->with('message_success', "Producto guardado correctamente, continua agregando las imagenes correspondientes");
......
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