git commit "add comments and fix tour comments display"
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user