fix:edit flight models

This commit is contained in:
2026-08-17 14:07:12 +03:30
parent 2694f0cd8a
commit 577bb9ae31
+6 -4
View File
@@ -97,10 +97,12 @@ class Flight extends Model
return $this->hasMany(Booking::class);
}
public function comments()
{
return $this->hasMany(Comment::class);
}
public function comments()
{
return $this->hasMany(Comment::class)
->where('status', 1)
->latest();
}
public function favorites()
{