Skip to content

Commit

Permalink
load pos
Browse files Browse the repository at this point in the history
Bagas Udi Sahsangka committed Aug 30, 2021
1 parent 8dc2871 commit 071bc8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/GateOutController.php
Original file line number Diff line number Diff line change
@@ -30,7 +30,8 @@ public function index(Request $request)

public function uhfReaders()
{
return GateOut::where('status', 1)
return GateOut::with(['pos'])
->where('status', 1)
->whereNotNull('uhf_reader_host')
->whereNotNull('uhf_reader_port')->get();
}

0 comments on commit 071bc8f

Please sign in to comment.