foothing/laravel-simple-pageviews

View on GitHub
src/config/visits.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
return [

    // Enable or disable tracking.
    "enabled" => true,

    // Add patterns to be blacklisted (ignored and not tracked).
    // These patterns will apply if the UrlWhitelist rule is
    // enabled in the chain.
    "blacklist" => [
        // i.e. '/^(admin|api|auth).*/'
    ],

    // Rules chain.
    "rules" => [
        "Foothing\Laravel\Visits\Rules\Crawler",
        "Foothing\Laravel\Visits\Rules\UrlWhitelist",
    ],

    "cache" => true,

];