@@ -67,7 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | else { |
| 69 | 69 | $user = User::find($request->user()->user_id); |
| 70 | - $device = $user->devices()->find($id); |
|
| 70 | + $device = $user->devices()->find($id); |
|
| 71 | 71 | } |
| 72 | 72 | // morph the data as required |
| 73 | 73 | if ($request->query('displayFormat') == 'link') { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | public function index(Request $request) |
| 21 | 21 | { |
| 22 | 22 | if ($request->user()->hasGlobalRead()) { |
| 23 | - return Port::with(array('device'=>function($query){ |
|
| 23 | + return Port::with(array('device'=>function($query) { |
|
| 24 | 24 | $query->select('device_id', 'hostname'); |
| 25 | 25 | }))->get(); |
| 26 | 26 | } |