feat: add favorites feature (model, controller, routes, view)

This commit is contained in:
2026-08-18 10:49:10 +03:30
parent 03a0a55630
commit 48705cc940
7 changed files with 198 additions and 1 deletions
+4
View File
@@ -98,4 +98,8 @@ class Flight extends Model
{
return $this->belongsTo(Airport::class, 'destination_airports_id');
}
public function favorites()
{
return $this->morphMany(Favorite::class, 'favoritable');
}
}