names('product'); Route::resource('category', CategoryController::class)->names('category'); Route::resource('sub-category', SubCategoryController::class)->names('subCategory'); Route::resource('warehouse', WarehouseController::class)->names('warehouse'); Route::resource('fabricCategory', FabricCategoryController::class)->names('fabricCategory'); Route::get('get-sub-categories', [SubCategoryController::class, 'getSubCategories'])->name('getSubCategories'); Route::get('product-details', [ProductController::class, 'getProductDetail'])->name('get-product-detail'); Route::get('/products-by-category', [ProductController::class, 'getProductsByCategory'])->name('products-by-category'); });