From 20dcf399ff5cd2acfcae75ddcd18045923d59254 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 11:36:29 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Http/Controllers/SearchController.php | 2 +- routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index a9b5220..a008b4a 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -22,7 +22,7 @@ class SearchController extends Controller { $results = $beer->sortable()->paginate(10); - return view('search.index')->with('results', $results); + return view('search.results')->with('results', $results); } public function search(Request $request){ diff --git a/routes/web.php b/routes/web.php index 09ef784..2a5d35e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -41,4 +41,4 @@ Route::get('/yeast/{yeastID}', [App\Http\Controllers\YeastcardController::class, 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.index'); +Route::get('search.results', [App\Http\Controllers\SearchController::class, 'index'])->name('search.results');