These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | return [ |
||
4 | 'title' => 'Laravel Health Check Panel', |
||
5 | |||
6 | 'resources' => [ |
||
7 | 'path' => config_path('health/resources'), |
||
8 | |||
9 | 'enabled' => PragmaRX\Health\Support\Constants::RESOURCES_ENABLED_ALL, |
||
10 | ], |
||
11 | |||
12 | 'sort_by' => 'slug', |
||
13 | |||
14 | 'cache' => [ |
||
15 | 'minutes' => config('app.debug') ? false : true, // false = disabled |
||
16 | |||
17 | 'key' => 'health-resources', |
||
18 | ], |
||
19 | |||
20 | 'database' => [ |
||
21 | 'enabled' => false, |
||
22 | |||
23 | 'graphs' => true, |
||
24 | |||
25 | 'max_records' => 30, |
||
26 | ], |
||
27 | |||
28 | 'assets' => [ |
||
29 | 'css' => base_path( |
||
30 | 'vendor/pragmarx/health/src/resources/dist/css/app.css' |
||
31 | ), |
||
32 | |||
33 | 'js' => base_path( |
||
34 | 'vendor/pragmarx/health/src/resources/dist/js/app.js' |
||
35 | ), |
||
36 | ], |
||
37 | |||
38 | 'cache_files_base_path' => $path = 'app/pragmarx/health', |
||
39 | |||
40 | 'notifications' => [ |
||
41 | 'enabled' => true, |
||
42 | |||
43 | 'notify_on' => [ |
||
44 | 'panel' => false, |
||
45 | 'check' => true, |
||
46 | 'string' => true, |
||
47 | 'resource' => false, |
||
48 | ], |
||
49 | |||
50 | 'action-title' => 'View App Health', |
||
51 | |||
52 | 'action_message' => |
||
53 | "The '%s' service is in trouble and needs attention%s", |
||
54 | |||
55 | 'from' => [ |
||
56 | 'name' => 'Laravel Health Checker', |
||
57 | |||
58 | 'address' => '[email protected]', |
||
59 | |||
60 | 'icon_emoji' => ':anger:', |
||
61 | ], |
||
62 | |||
63 | 'scheduler' => [ |
||
64 | 'enabled' => true, |
||
65 | |||
66 | 'frequency' => 'everyMinute', // most methods on -- https://laravel.com/docs/5.3/scheduling#defining-schedules |
||
67 | ], |
||
68 | |||
69 | 'users' => [ |
||
70 | 'model' => App\User::class, |
||
71 | |||
72 | 'emails' => ['[email protected]'], |
||
73 | ], |
||
74 | |||
75 | 'channels' => [ |
||
76 | 'mail' => [ |
||
77 | 'enabled' => true, |
||
78 | 'sender' => PragmaRX\Health\Notifications\Channels\Mail::class, |
||
79 | ], |
||
80 | |||
81 | 'slack' => [ |
||
82 | 'enabled' => true, |
||
83 | 'sender' => PragmaRX\Health\Notifications\Channels\Slack::class, |
||
84 | ], |
||
85 | |||
86 | 'facebook' => [ |
||
87 | 'enabled' => false, |
||
88 | ], |
||
89 | ], |
||
90 | |||
91 | 'notifier' => 'PragmaRX\Health\Notifications', |
||
92 | ], |
||
93 | |||
94 | 'alert' => [ |
||
95 | 'success' => [ |
||
96 | 'type' => 'success', |
||
97 | 'message' => 'Everything is fine with this resource', |
||
98 | ], |
||
99 | |||
100 | 'error' => [ |
||
101 | 'type' => 'error', |
||
102 | 'message' => 'We are having trouble with this resource', |
||
103 | ], |
||
104 | ], |
||
105 | |||
106 | 'style' => [ |
||
107 | 'columnSize' => 2, |
||
108 | |||
109 | 'button_lines' => 'multi', // multi or single |
||
110 | |||
111 | 'multiplier' => 0.4, |
||
112 | |||
113 | 'opacity' => [ |
||
114 | 'healthy' => '0.5', |
||
115 | |||
116 | 'failing' => '0.85', |
||
117 | ], |
||
118 | ], |
||
119 | |||
120 | 'views' => [ |
||
121 | 'panel' => 'pragmarx/health::default.panel', |
||
122 | |||
123 | 'empty-panel' => 'pragmarx/health::default.empty-panel', |
||
124 | |||
125 | 'partials' => [ |
||
126 | 'well' => 'pragmarx/health::default.partials.well', |
||
127 | ], |
||
128 | ], |
||
129 | |||
130 | 'string' => [ |
||
131 | 'glue' => '-', |
||
132 | 'ok' => 'OK', |
||
133 | 'fail' => 'FAIL', |
||
134 | ], |
||
135 | |||
136 | 'routes' => [ |
||
137 | 'prefix' => $route_prefix = '/health', |
||
138 | |||
139 | 'namespace' => $namespace = 'PragmaRX\Health\Http\Controllers\Health', |
||
140 | |||
141 | 'name_prefix' => $name_prefix = 'pragmarx.health', |
||
142 | |||
143 | 'notification' => 'pragmarx.health.panel', |
||
144 | |||
145 | 'list' => [ |
||
146 | [ |
||
147 | 'uri' => "{$route_prefix}/panel", |
||
148 | 'name' => "{$name_prefix}.panel", |
||
149 | 'action' => "{$namespace}@panel", |
||
150 | 'middleware' => [ |
||
151 | /*'auth.basic'*/ |
||
152 | ], |
||
153 | ], |
||
154 | |||
155 | [ |
||
156 | 'uri' => "{$route_prefix}/check", |
||
157 | 'name' => "{$name_prefix}.check", |
||
158 | 'action' => "{$namespace}@check", |
||
159 | 'middleware' => [], |
||
160 | ], |
||
161 | |||
162 | [ |
||
163 | 'uri' => "{$route_prefix}/string", |
||
164 | 'name' => "{$name_prefix}.string", |
||
165 | 'action' => "{$namespace}@string", |
||
166 | 'middleware' => [], |
||
167 | ], |
||
168 | |||
169 | [ |
||
170 | 'uri' => "{$route_prefix}/resources", |
||
171 | 'name' => "{$name_prefix}.resources.all", |
||
172 | 'action' => "{$namespace}@allResources", |
||
173 | 'middleware' => [], |
||
174 | ], |
||
175 | |||
176 | [ |
||
177 | 'uri' => "{$route_prefix}/resources/{slug}", |
||
178 | 'name' => "{$name_prefix}.resources.get", |
||
179 | 'action' => "{$namespace}@getResource", |
||
180 | 'middleware' => [], |
||
181 | ], |
||
182 | |||
183 | [ |
||
184 | 'uri' => "{$route_prefix}/assets/css/app.css", |
||
185 | 'name' => "{$name_prefix}.assets.css", |
||
186 | 'action' => "{$namespace}@assetAppCss", |
||
187 | 'middleware' => [], |
||
188 | ], |
||
189 | |||
190 | [ |
||
191 | 'uri' => "{$route_prefix}/assets/js/app.js", |
||
192 | 'name' => "{$name_prefix}.assets.js",≤ |
||
193 | 'action' => "{$namespace}@assetAppJs", |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
194 | 'middleware' => [], |
||
195 | ], |
||
196 | ], |
||
197 | ], |
||
198 | |||
199 | 'urls' => [ |
||
200 | 'panel' => '/health/panel', |
||
201 | ], |
||
202 | ]; |
||
203 |