forked from bagisto/bagisto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
visitor.php
37 lines (33 loc) · 1.2 KB
/
visitor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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,
],
];