File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33use App \LocationTag ;
44use App \BaseUser ;
5+ use App \LocationSearchOption ;
56use DB ;
67use Illuminate \Routing \Controller ;
78use Illuminate \Http \Request ;
@@ -21,7 +22,7 @@ public function index(Request $request)
2122 if (trim ($ address_value ) === trim (BaseUser::getDefaultAddress ())) {
2223 $ address_value = '' ;
2324 }
24- $ location_search_options = DB :: table ( ' location_search_option ' )->get ();
25+ $ location_search_options = LocationSearchOption:: query ( )->get ();
2526 if (Input::has ('keywords ' )) {
2627 $ keywords = trim (Input::get ('keywords ' ));
2728 BaseUser::setKeywords ($ keywords );
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace App ;
4+
5+ use Illuminate \Database \Eloquent \Model ;
6+
7+ class LocationSearchOption extends Model
8+ {
9+ protected $ fillable = [
10+ 'content '
11+ ];
12+
13+ protected $ table = 'location_search_option ' ;
14+ }
You can’t perform that action at this time.
0 commit comments