php artisan migrate:fresh y php artisan importar:excel, les tengo que pasar el archivo csv
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user