From b80f6daac77a0f0eb837fa1e04daeaa663583c65 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 22 Feb 2019 13:50:52 -0700 Subject: [PATCH] Update SearchController --- app/Http/Controllers/SearchController.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 4f19a98c..59cb65cc 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -121,4 +121,13 @@ class SearchController extends Controller } return response()->json($tokens); } + + public function results(Request $request) + { + $this->validate($request, [ + 'q' => 'required|string|min:1', + ]); + + return view('search.results'); + } }