names('ingredient'); Route::resource('ingredientCategory', IngredientCategoryController::class)->names('ingredientCategory'); Route::resource('unit', UnitController::class)->names('unit'); Route::get('ingredient-details', [IngredientController::class, 'getIngredientDetail'])->name('get-ingredient-detail'); Route::get('/ingredients-by-category', [IngredientController::class, 'getIngredientsByCategory'])->name('ingredients-by-category'); });