feat: add view count feature for tours and flights
This commit is contained in:
@@ -41,6 +41,7 @@ class TourController extends Controller
|
||||
},
|
||||
'comments.user'
|
||||
]);
|
||||
$tour->increment('views_count');
|
||||
|
||||
return view('tours.show', compact('title' , 'tour'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user