@@ -76,14 +76,14 @@ |
||
76 | 76 | 'id', |
77 | 77 | 'name', |
78 | 78 | ]) |
79 | - ->orderByRaw(DB::raw("(id = " . $location->site_id . ") DESC")) |
|
79 | + ->orderByRaw(DB::raw("(id = ".$location->site_id.") DESC")) |
|
80 | 80 | ->get(); |
81 | 81 | $locations = Location::query()->select([ |
82 | 82 | 'id', |
83 | 83 | 'name', |
84 | 84 | ]) |
85 | 85 | ->where('site_id', '=', $location->site_id) |
86 | - ->orderByRaw(DB::raw("(id = " . $device->location_id . ") DESC")) |
|
86 | + ->orderByRaw(DB::raw("(id = ".$device->location_id.") DESC")) |
|
87 | 87 | ->get(); |
88 | 88 | } |
89 | 89 | else |