Skip to content

Commit 8dba319

Browse files
committed
Update README.md
1 parent decea9c commit 8dba319

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- [Delete Visit Monitoring Records By Specific Days](#delete-visit-monitoring-records-by-specific-days)
2020
- [Turn ON-OFF](#turn-on-off)
2121
- [Views](#visit-monitoring-views)
22+
- [Ajax Requests](#ajax-requests)
2223
- [Action Monitoring](#action-monitoring)
2324
- [Views](#action-monitoring-views)
2425
- [Authentication Monitoring](#authentication-monitoring)
@@ -289,6 +290,26 @@ Laravel-User-Monitoring also has an amazing views that you can use it very easy,
289290

290291
![Visit Monitoring Preview](/art/visits-monitoring/preview.png "Visit Monitoring")
291292

293+
<a name="ajax-requests"></a>
294+
### Ajax Requests
295+
296+
Maybe you may disable record visits for `Ajax` requests, you can use config to disable it:
297+
298+
```php
299+
'visit_monitoring' => [
300+
...
301+
302+
/*
303+
* If you want to disable visit monitoring in Ajax mode, set it to false.
304+
*/
305+
'ajax_requests' => true,
306+
307+
...
308+
],
309+
```
310+
311+
When set to false, Ajax requests will not be recorded.
312+
292313
<a name="action-monitoring"></a>
293314
## Action Monitoring
294315

0 commit comments

Comments
 (0)