fix: update tour functionality
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user