feat: update user and flight models and add comment and admin models

This commit is contained in:
2026-08-18 09:28:06 +03:30
parent bb4196cc1b
commit 7cdfcdbef2
5 changed files with 198 additions and 31 deletions
+3 -3
View File
@@ -146,9 +146,9 @@ class Flight extends Model
{
return $this->hasMany(Booking::class);
}
public function tours()
public function comments()
{
return $this->hasMany(Tour::class, 'file_id');
return $this->hasMany(Comment::class, 'flight_id');
}
}