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
@@ -32,6 +32,7 @@ class FlightController extends Controller
public function show(Flight $flight)
{
$title = 'جزئیات پرواز';
$flight->increment('views_count');
return view('flights.show' , compact('title' , 'flight'));
}