fix:edit flight models
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user