Added About Page
This commit is contained in:
@@ -15,9 +15,15 @@ class Tour extends Model
|
||||
return $this->belongsToMany(Country::class, 'tour_countries', 'tour_id', 'country_id');
|
||||
}
|
||||
|
||||
public function tour_days()
|
||||
{
|
||||
return $this->hasMany(TourDay::class);
|
||||
}
|
||||
|
||||
public static function featuredTours(){
|
||||
return Tour::whereHas('countries.continent')
|
||||
->with('countries.continent')
|
||||
->with('tour_days')
|
||||
->inRandomOrder()
|
||||
->limit(4)
|
||||
->get();
|
||||
|
||||
Reference in New Issue
Block a user