Added achievement data

This commit is contained in:
dredgy committed 2026-04-26 20:00:11 +10:00
1 parent f6d5b97784
commit 14aed7bf6e
18 files changed
+950 -6

No files matched your search

+8
View File
@@ -148,6 +148,14 @@ class UserFlight extends Model
);
}
public function isDomestic() : bool{
return $this->departureAirport->region->country_id == $this->arrivalAirport->region->country_id;
}
public function isInternational() : bool{
return !$this->isDomestic();
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);