git commit "style: improve tour flight details and auth pages"
This commit is contained in:
+14
-2
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user