git commit "style: improve tour flight details and auth pages"

This commit is contained in:
2026-08-20 12:08:53 +03:30
parent 73c8e52414
commit c04879b0d6
17 changed files with 1667 additions and 867 deletions
+14 -2
View File
@@ -108,9 +108,21 @@ class Flight extends Model
});
});
$query->when($filters['origin'] ?? null, function ($query, $origin) {
$query->where('origin', $origin);
});
$query->when($filters['destination'] ?? null, function ($query, $destination) {
$query->where('destination', $destination);
});
}
#[Scope]
public function filterType(Builder $query, $type = null): void
{