Browse Source

Update SearchController

Daniel Supernault 6 năm trước cách đây
mục cha
commit
b80f6daac7
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      app/Http/Controllers/SearchController.php

+ 9 - 0
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');
+    }
 }