This commit is contained in:
2026-08-15 13:29:00 -07:00
parent 649feeba63
commit 793dc85e44
70 changed files with 12639 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* Class TourDate
*
* @property int $id
* @property int $tour_id
* @property Carbon $departure_date
* @property Carbon $return_date
* @property int $price
* @property int $capacity
* @property int $status
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property Tour $tour
* @property Collection|Booking[] $bookings
*
* @package App\Models
*/
class TourDate extends Model
{
protected $table = 'tour_dates';
protected $casts = [
'tour_id' => 'int',
'departure_date' => 'datetime',
'return_date' => 'datetime',
'price' => 'int',
'capacity' => 'int',
'status' => 'int'
];
protected $fillable = [
'tour_id',
'departure_date',
'return_date',
'price',
'capacity',
'status'
];
public function tour()
{
return $this->belongsTo(Tour::class);
}
public function bookings()
{
return $this->hasMany(Booking::class, 'toure_date_id');
}
}