Featured tours working

This commit is contained in:
2025-09-15 13:40:20 +10:00
parent f0e7ce30fc
commit e965cc2780
24 changed files with 384 additions and 26 deletions

17
app/Models/Tour.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Tour extends Model
{
protected $fillable = ['name', 'internal_name', 'short_description'];
public $timestamps = false;
public function countries()
{
return $this->belongsToMany(Country::class, 'tour_countries', 'tour_id', 'country_id');
}
}