git commit "add comments and fix tour comments display"

This commit is contained in:
2026-08-17 13:33:37 +03:30
parent 970786ae94
commit 902384625b
11 changed files with 729 additions and 166 deletions
+6 -1
View File
@@ -24,7 +24,12 @@ class FlightController extends Controller
{
$flight->increment('views');
return view('flights.show', compact('flight'));
$comments = $flight->comments()
->latest()
->get();
return view('flights.show', compact('flight','comments'));
}
}