Added achievement data
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user