| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- return [
- /*
- |--------------------------------------------------------------------------
- | Default Driver
- |--------------------------------------------------------------------------
- |
- | This value determines which of the following driver to use.
- | You can switch to a different driver at runtime.
- |
- */
- 'default' => 'jenssegers',
- // except save request or route names
- 'except' => ['login', 'register'],
- // name of the table which visit records should save in
- 'table_name' => 'visits',
- /*
- |--------------------------------------------------------------------------
- | List of Drivers
- |--------------------------------------------------------------------------
- |
- | This is the array of Classes that maps to Drivers above.
- | You can create your own driver if you like and add the
- | config in the drivers array and the class to use for
- | here with the same name. You will have to implement
- | Shetabit\Visitor\Contracts\UserAgentParser in your driver.
- |
- */
- 'drivers' => [
- 'jenssegers' => \Shetabit\Visitor\Drivers\JenssegersAgent::class,
- 'UAParser' => \Shetabit\Visitor\Drivers\UAParser::class,
- ],
- /*
- |--------------------------------------------------------------------------
- | GeoIP Enrichment
- |--------------------------------------------------------------------------
- |
- | When enabled, visits can be enriched with geolocation data stored
- | in the "geo_raw" JSON column. This package ships with a default
- | resolver (stevebauman/location). You may implement your own by
- | adding it to the drivers array below. Each driver must implement
- | Shetabit\Visitor\Contracts\GeoIpResolver.
- |
- */
- 'geoip' => false, // disable enrichment by default
- 'resolver' => 'stevebauman', // default resolver
- 'resolvers' => [
- 'stevebauman' => \Shetabit\Visitor\Resolvers\GeoIp\SteveBaumanResolver::class,
- 'null' => \Shetabit\Visitor\Resolvers\GeoIp\NullResolver::class,
- ],
- ];
|