feat: add view count feature for tours and flights

This commit is contained in:
2026-08-19 13:51:44 +03:30
parent eebededa4d
commit 33de5fe54f
6 changed files with 12 additions and 7 deletions
+1
View File
@@ -41,6 +41,7 @@ class TourController extends Controller
},
'comments.user'
]);
$tour->increment('views_count');
return view('tours.show', compact('title' , 'tour'));
}