diff --git a/resources/views/search/index.blade.php b/resources/views/search/index.blade.php index dd9179a..a0edabf 100644 --- a/resources/views/search/index.blade.php +++ b/resources/views/search/index.blade.php @@ -1,4 +1,4 @@ -
+ @csrf
diff --git a/routes/web.php b/routes/web.php index 6c6d04d..5feb03c 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/{searchword}', [App\Http\Controllers\SearchController::class, 'search'])->name('results'); +Route::post('search.results', [App\Http\Controllers\SearchController::class, 'search'])->name('results'); Route::get('search.results', [App\Http\Controllers\SearchController::class, 'index'])->name('search.results');