git commit "add user reservations and complete profile features"
This commit is contained in:
@@ -76,6 +76,13 @@ class Flight extends Model
|
||||
{
|
||||
return $this->morphMany(Favorite::class, 'favoritable');
|
||||
}
|
||||
public function reservations()
|
||||
{
|
||||
return $this->morphMany(
|
||||
Reservation::class,
|
||||
'reservable'
|
||||
);
|
||||
}
|
||||
|
||||
#[Scope]
|
||||
public function applySearch(Builder $query, array $filters): void
|
||||
|
||||
Reference in New Issue
Block a user