From 6a266f947d6fd8d259fa41356222f32986152377 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 09:39:52 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- resources/views/search/index.blade.php | 4 ++-- routes/web.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/search/index.blade.php b/resources/views/search/index.blade.php index 9551727..6dab62b 100644 --- a/resources/views/search/index.blade.php +++ b/resources/views/search/index.blade.php @@ -1,4 +1,4 @@ -
+ @csrf
@@ -15,5 +15,5 @@
- +
diff --git a/routes/web.php b/routes/web.php index 6ccaef7..f1c89c3 100644 --- a/routes/web.php +++ b/routes/web.php @@ -40,4 +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::get('search.results', [App\Http\Controllers\SearchController::class, 'search'])->name('search.results'); +Route::post('/search/results/{searchword}', [App\Http\Controllers\SearchController::class, 'search'])->name('search.results');