From 139298b7e605ecb962eeb128da3e9da821f6611a Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 11:40:33 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- routes/web.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 2a5d35e..15233d3 100644 --- a/routes/web.php +++ b/routes/web.php @@ -40,5 +40,4 @@ Route::get('/grain/{grainID}', [App\Http\Controllers\GraincardController::class, Route::get('/yeast/{yeastID}', [App\Http\Controllers\YeastcardController::class, 'index'])->name('yeast'); Route::get('/hop/{hopID}', [App\Http\Controllers\HopcardController::class, 'index'])->name('hop'); Route::get('/adjunct/{adjunctID}', [App\Http\Controllers\AdjunctcardController::class, 'index'])->name('adjunct'); -Route::post('search.results', [App\Http\Controllers\SearchController::class, 'search'])->name('search.results'); -Route::get('search.results', [App\Http\Controllers\SearchController::class, 'index'])->name('search.results'); +Route::match(['get','post'], 'search.results', [App\Http\Controllers\SearchController::class, 'search'])->name('search.results');