feat: edit tour Model
This commit is contained in:
@@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class TourDate
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $tour_id
|
||||
* @property Carbon $departure_date
|
||||
@@ -22,7 +22,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
* @property int $status
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
*
|
||||
*
|
||||
* @property Tour $tour
|
||||
* @property Collection|Booking[] $bookings
|
||||
*
|
||||
@@ -57,6 +57,6 @@ class TourDate extends Model
|
||||
|
||||
public function bookings()
|
||||
{
|
||||
return $this->hasMany(Booking::class, 'toure_date_id');
|
||||
return $this->hasMany(Booking::class, 'tour_date_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user