diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index a008b4a..a9b5220 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.results')->with('results', $results); + return view('search.index')->with('results', $results); } public function search(Request $request){ diff --git a/routes/web.php b/routes/web.php index 2a86c5d..09ef784 100644 --- a/routes/web.php +++ b/routes/web.php @@ -40,5 +40,5 @@ 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']); -Route::get('search.results', [App\Http\Controllers\SearchController::class, 'index']); +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');