feat: edit tour Model
This commit is contained in:
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user