Statistics module: visitor statistics without cookies

This commit is contained in:
Matthijs Iriks committed 2026-12-04 02:37:08 +01:00
1 parent acb8620621
commit 7482ee489b
24 files changed
+1872 -4

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
<?php
use Illuminate\Support\Facades\Route;
use IriksIT\Manager\Modules\Statistics\PulseController;
// Visitors of the public site report a page view here. No session, no cookies.
Route::prefix(trim((string) config('manager.statistics.pulse_path', 'pulse'), '/'))->middleware('throttle:manager-pulse')->group(function () {
Route::post('/view', [PulseController::class, 'view'])->name('manager.pulse.view');
Route::post('/leave', [PulseController::class, 'leave'])->name('manager.pulse.leave');
});