fix: update tour functionality

This commit is contained in:
2026-08-22 07:55:56 +03:30
parent 2195f10016
commit fad359f1c5
2 changed files with 206 additions and 77 deletions
+10
View File
@@ -75,6 +75,16 @@ class Tour extends Model
->withPivot('id')
->withTimestamps();
}
// در فایل App\Models\Tour.php و App\Models\Flight.php
public function comments()
{
return $this->morphMany(Comment::class, 'commentable');
}
protected static function booted()
{
static::creating(function ($tour) {