Hello, I tried this package and it works very well !
But i can't find if there is any way to log the visited pages, for example i want to know all the pages visited by one connected user. How can I do this kind of tracking with this package please ???
Thanks :)
You could write a middleware that logs activity.
use Closure;
class LogsActivity
{
public function handle($request, Closure $next)
{
if (auth()->check()) {
activity()
->causedBy(auth()->user())
->log("User visited {$request->fullUrl()}");
}
return $next($request);
}
}
It works perfectly ! Thanks, this package is really really useful/powerful !
Most helpful comment
You could write a middleware that logs activity.