feat: edit tour Model

This commit is contained in:
2026-08-18 16:24:27 -07:00
parent b56c9de4ce
commit 78ea870a8f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ class Tour extends Model
return $this->belongsTo(File::class); return $this->belongsTo(File::class);
} }
public function tour_dates() public function bookings()
{ {
return $this->hasMany(TourDate::class); return $this->hasMany(TourDate::class);
} }
+3 -3
View File
@@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\Model;
/** /**
* Class TourDate * Class TourDate
* *
* @property int $id * @property int $id
* @property int $tour_id * @property int $tour_id
* @property Carbon $departure_date * @property Carbon $departure_date
@@ -22,7 +22,7 @@ use Illuminate\Database\Eloquent\Model;
* @property int $status * @property int $status
* @property Carbon $created_at * @property Carbon $created_at
* @property Carbon $updated_at * @property Carbon $updated_at
* *
* @property Tour $tour * @property Tour $tour
* @property Collection|Booking[] $bookings * @property Collection|Booking[] $bookings
* *
@@ -57,6 +57,6 @@ class TourDate extends Model
public function bookings() public function bookings()
{ {
return $this->hasMany(Booking::class, 'toure_date_id'); return $this->hasMany(Booking::class, 'tour_date_id');
} }
} }