php artisan migrate:fresh y php artisan importar:excel, les tengo que pasar el archivo csv

This commit is contained in:
gianella
2026-04-04 20:59:30 -03:00
parent d1467ca098
commit b4476431e4
9 changed files with 224 additions and 61 deletions
+2 -2
View File
@@ -35,9 +35,9 @@ class TallerController extends Controller
{
$clients = Client::orderBy('name')->get();
$products = Product::whereIn('type', ['accessory','spare'])
$products = Product::whereIn('type', ['accessory','spare', 'service'])
->where('stock_quantity', '>', 0)
->get(['id', 'name', 'price', 'sku', 'stock_quantity']); // Solo campos necesarios
->get(['id', 'name', 'price', 'stock_quantity']); // Solo campos necesarios
return view('taller.create', compact('clients', 'products'));
}