git commit "add user reservations and complete profile features"

This commit is contained in:
2026-08-17 19:35:22 +03:30
parent ded7416302
commit 3055e42641
12 changed files with 829 additions and 0 deletions
+7
View File
@@ -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