| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
use Spatie\FlareClient\FlareMiddleware\AddGitInformation;
|
|
|
4 |
use Spatie\FlareClient\FlareMiddleware\RemoveRequestIp;
|
|
|
5 |
use Spatie\FlareClient\FlareMiddleware\CensorRequestBodyFields;
|
|
|
6 |
use Spatie\FlareClient\FlareMiddleware\CensorRequestHeaders;
|
|
|
7 |
use Spatie\LaravelIgnition\FlareMiddleware\AddDumps;
|
|
|
8 |
use Spatie\LaravelIgnition\FlareMiddleware\AddEnvironmentInformation;
|
|
|
9 |
use Spatie\LaravelIgnition\FlareMiddleware\AddExceptionInformation;
|
|
|
10 |
use Spatie\LaravelIgnition\FlareMiddleware\AddJobs;
|
|
|
11 |
use Spatie\LaravelIgnition\FlareMiddleware\AddLogs;
|
|
|
12 |
use Spatie\LaravelIgnition\FlareMiddleware\AddQueries;
|
|
|
13 |
use Spatie\LaravelIgnition\FlareMiddleware\AddNotifierName;
|
|
|
14 |
|
|
|
15 |
return [
|
|
|
16 |
/*
|
|
|
17 |
|
|
|
|
18 |
|--------------------------------------------------------------------------
|
|
|
19 |
| Flare API key
|
|
|
20 |
|--------------------------------------------------------------------------
|
|
|
21 |
|
|
|
|
22 |
| Specify Flare's API key below to enable error reporting to the service.
|
|
|
23 |
|
|
|
|
24 |
| More info: https://flareapp.io/docs/general/projects
|
|
|
25 |
|
|
|
|
26 |
*/
|
|
|
27 |
|
|
|
28 |
'key' => env('FLARE_KEY'),
|
|
|
29 |
|
|
|
30 |
/*
|
|
|
31 |
|--------------------------------------------------------------------------
|
|
|
32 |
| Middleware
|
|
|
33 |
|--------------------------------------------------------------------------
|
|
|
34 |
|
|
|
|
35 |
| These middleware will modify the contents of the report sent to Flare.
|
|
|
36 |
|
|
|
|
37 |
*/
|
|
|
38 |
|
|
|
39 |
'flare_middleware' => [
|
|
|
40 |
RemoveRequestIp::class,
|
|
|
41 |
AddGitInformation::class,
|
|
|
42 |
AddNotifierName::class,
|
|
|
43 |
AddEnvironmentInformation::class,
|
|
|
44 |
AddExceptionInformation::class,
|
|
|
45 |
AddDumps::class,
|
|
|
46 |
AddLogs::class => [
|
|
|
47 |
'maximum_number_of_collected_logs' => 200,
|
|
|
48 |
],
|
|
|
49 |
AddQueries::class => [
|
|
|
50 |
'maximum_number_of_collected_queries' => 200,
|
|
|
51 |
'report_query_bindings' => true,
|
|
|
52 |
],
|
|
|
53 |
AddJobs::class => [
|
|
|
54 |
'max_chained_job_reporting_depth' => 5,
|
|
|
55 |
],
|
|
|
56 |
CensorRequestBodyFields::class => [
|
|
|
57 |
'censor_fields' => [
|
|
|
58 |
'password',
|
|
|
59 |
'password_confirmation',
|
|
|
60 |
],
|
|
|
61 |
],
|
|
|
62 |
CensorRequestHeaders::class => [
|
|
|
63 |
'headers' => [
|
|
|
64 |
'API-KEY',
|
|
|
65 |
]
|
|
|
66 |
]
|
|
|
67 |
],
|
|
|
68 |
|
|
|
69 |
/*
|
|
|
70 |
|--------------------------------------------------------------------------
|
|
|
71 |
| Reporting log statements
|
|
|
72 |
|--------------------------------------------------------------------------
|
|
|
73 |
|
|
|
|
74 |
| If this setting is `false` log statements won't be sent as events to Flare,
|
|
|
75 |
| no matter which error level you specified in the Flare log channel.
|
|
|
76 |
|
|
|
|
77 |
*/
|
|
|
78 |
|
|
|
79 |
'send_logs_as_events' => true,
|
|
|
80 |
];
|