fix:edit flight models
This commit is contained in:
@@ -97,10 +97,12 @@ class Flight extends Model
|
|||||||
return $this->hasMany(Booking::class);
|
return $this->hasMany(Booking::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function comments()
|
public function comments()
|
||||||
{
|
{
|
||||||
return $this->hasMany(Comment::class);
|
return $this->hasMany(Comment::class)
|
||||||
}
|
->where('status', 1)
|
||||||
|
->latest();
|
||||||
|
}
|
||||||
|
|
||||||
public function favorites()
|
public function favorites()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user