Added Notifications
This commit is contained in:
1 parent
69d72e0912
commit
1d5b9f340f
61 files changed
+4204
-182
No files matched your search
@@ -55,6 +55,14 @@ class User extends Authenticatable
|
||||
return $this->hasMany(UserFlight::class);
|
||||
}
|
||||
|
||||
public function departedFlights() : HasMany {
|
||||
return $this->flights()->where('departure_date', '<=', now('UTC'));
|
||||
}
|
||||
|
||||
public function upcomingFlights() : HasMany {
|
||||
return $this->flights()->where('departure_date', '>=', now('UTC'));
|
||||
}
|
||||
|
||||
public function ImportedFlights(): HasMany
|
||||
{
|
||||
return $this->hasMany(ImportedFlight::class);
|
||||
|
||||
Reference in new issue
Block a user