Only show flights if they're also marked as visible

This commit is contained in:
Nabeel Shahzad
2018-07-12 22:29:50 -05:00
parent 4ca58ed754
commit 0af85a3fff
4 changed files with 22 additions and 6 deletions

View File

@@ -71,7 +71,8 @@ class FlightRepository extends Repository implements CacheableInterface
$where = [];
if ($only_active === true) {
$where['active'] = $only_active;
$where['active'] = $only_active;
$where['visible'] = $only_active;
}
if ($request->filled('flight_id')) {