Componentalization

This commit is contained in:
dredgy committed 2025-09-16 22:01:42 +10:00
1 parent e965cc2780
commit 91771e9573
19 files changed
+1683 -223

No files matched your search

+6
View File
@@ -14,4 +14,10 @@ class Tour extends Model
{
return $this->belongsToMany(Country::class, 'tour_countries', 'tour_id', 'country_id');
}
public static function featuredTours(){
return Tour::whereHas('countries.continent')
->with('countries.continent')
->get();
}
}