質問編集履歴
1
Controllerのメソッド追加
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -21,6 +21,13 @@
|
|
|
21
21
|
```
|
|
22
22
|
Controller
|
|
23
23
|
```Laravel5
|
|
24
|
+
public function searchInput(){
|
|
25
|
+
$input = Request::all();
|
|
26
|
+
HotelController::searchHotel($input);
|
|
27
|
+
return redirect('/');
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
```Laravel5
|
|
24
31
|
public function searchHotel($input){
|
|
25
32
|
|
|
26
33
|
$search_result = DB::connection('mysql')->table('keyword_mst_world')
|