git commit "add comments and fix tour comments display"
This commit is contained in:
@@ -24,7 +24,12 @@ class TourController extends Controller
|
||||
public function show(Tour $tour)
|
||||
{
|
||||
$tour->load('travelType');
|
||||
$tour->increment('views');
|
||||
$comments = $tour->comments()
|
||||
->latest()
|
||||
->get();
|
||||
|
||||
return view('tours.show', compact('tour'));
|
||||
|
||||
return view('tours.show', compact('tour','comments'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user