diff --git a/app/Models/Flight.php b/app/Models/Flight.php index f1fa087..579b6fb 100644 --- a/app/Models/Flight.php +++ b/app/Models/Flight.php @@ -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() {