forked from bilfeldt/laravel-route-statistics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute-statistics.php
72 lines (66 loc) · 2.49 KB
/
route-statistics.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
return [
/*
|--------------------------------------------------------------------------
| Enabled
|--------------------------------------------------------------------------
|
| This is a 'master' switch to enable/disable logging. Setting this to
| false will disable all logging.
|
*/
'enabled' => env('ROUTE_STATISTICS_ENABLED', true),
/*
|--------------------------------------------------------------------------
| Store parameters
|--------------------------------------------------------------------------
|
| If this setting is set to true the route parameters will also be logged.
|
*/
'store_parameters' => env('ROUTE_STORE_PARAMETERS', false),
/*
|--------------------------------------------------------------------------
| Aggregation
|--------------------------------------------------------------------------
|
| This setting controls how we should aggregate requests.
| Possible values are: SECOND, MINUTE, HOUR, DAY, MONTH, YEAR
|
*/
'aggregate' => env('ROUTE_STATISTICS_AGGREGATE', 'DAY'),
/*
|--------------------------------------------------------------------------
| Model
|--------------------------------------------------------------------------
|
| This is the model used to store request statistics.
| It is possible to implement a custom model which extends the default model
| or alternatively implement a completely new model which implements
| Bilfeldt\RequestLogger\Contracts\RequestLoggerInterface
|
*/
'model' => env('ROUTE_STATISTICS_MODEL', \Bilfeldt\LaravelRouteStatistics\Models\RouteStatistic::class),
/*
|--------------------------------------------------------------------------
| Store Strategy
|--------------------------------------------------------------------------
|
| If you set this to true, the Logs stored in the database using queues
| It is good when you have large database
|
*/
'queued' => env('ROUTE_STATISTICS_QUEUED', false),
/*
|--------------------------------------------------------------------------
| User Model
|--------------------------------------------------------------------------
|
| This is the model used for user relationships.
| You can set a custom user model for relationships.
|
| Leaving this empty will use the model from the 'users' auth provider.
|
*/
'user_model' => env('ROUTE_STATISTICS_USER_MODEL'),
];