'int', 'start_date' => 'datetime', 'end_date' => 'datetime', 'price' => 'float', 'capacity' => 'int', 'views_count' => 'int', 'status' => 'int' ]; protected $fillable = [ 'travel_type_id', 'title', 'slug', 'image', 'description', 'duration', 'start_date', 'end_date', 'price', 'capacity', 'views_count', 'status' ]; public function travelType() { return $this->belongsTo(TravelType::class); } public function flights() { return $this->belongsToMany(Flight::class, 'tour_flights') ->withPivot('id') ->withTimestamps(); } }