|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
// Route::group( |
|
4
|
|
|
// ['middleware' => ['web', 'admin']], function () { @todo |
|
5
|
|
|
// Route::group(['middleware' => ['siravel-analytics']], function () { |
|
6
|
|
|
|
|
7
|
|
|
Route::prefix('tracking')->group( |
|
|
|
|
|
|
8
|
|
|
function () { |
|
9
|
|
|
Route::group( |
|
10
|
|
|
['as' => 'tracking.'], function () { |
|
11
|
|
|
|
|
12
|
|
|
Route::get('analytics', 'AnalyticsController@index')->name('analytics'); |
|
13
|
|
|
} |
|
14
|
|
|
); |
|
15
|
|
|
|
|
16
|
|
|
Route::group( |
|
17
|
|
|
['namespace' => 'Metrics'], function () { |
|
18
|
|
|
Route::group( |
|
19
|
|
|
['as' => 'larametrics::'], function () { |
|
20
|
|
|
|
|
21
|
|
|
// dashboard routes |
|
22
|
|
|
Route::get( |
|
23
|
|
|
'/metrics', [ |
|
24
|
|
|
'as' => 'metrics.index', |
|
25
|
|
|
'uses' => 'MetricsController@index', |
|
26
|
|
|
] |
|
27
|
|
|
); |
|
28
|
|
|
|
|
29
|
|
|
// logs routes |
|
30
|
|
|
Route::get( |
|
31
|
|
|
'/metrics/logs', [ |
|
32
|
|
|
'as' => 'logs.index', |
|
33
|
|
|
'uses' => 'LogController@index', |
|
34
|
|
|
] |
|
35
|
|
|
); |
|
36
|
|
|
|
|
37
|
|
|
Route::get( |
|
38
|
|
|
'/metrics/logs/{log}', [ |
|
39
|
|
|
'as' => 'logs.show', |
|
40
|
|
|
'uses' => 'LogController@show', |
|
41
|
|
|
] |
|
42
|
|
|
); |
|
43
|
|
|
|
|
44
|
|
|
// models routes |
|
45
|
|
|
Route::get( |
|
46
|
|
|
'/metrics/models', [ |
|
47
|
|
|
'as' => 'models.index', |
|
48
|
|
|
'uses' => 'ModelController@index', |
|
49
|
|
|
] |
|
50
|
|
|
); |
|
51
|
|
|
|
|
52
|
|
|
Route::get( |
|
53
|
|
|
'/metrics/models/{model}', [ |
|
54
|
|
|
'as' => 'models.show', |
|
55
|
|
|
'uses' => 'ModelController@show', |
|
56
|
|
|
] |
|
57
|
|
|
); |
|
58
|
|
|
|
|
59
|
|
|
Route::get( |
|
60
|
|
|
'/metrics/models/{model}/revert', [ |
|
61
|
|
|
'as' => 'models.revert', |
|
62
|
|
|
'uses' => 'ModelController@revert', |
|
63
|
|
|
] |
|
64
|
|
|
); |
|
65
|
|
|
|
|
66
|
|
|
// performance routes |
|
67
|
|
|
Route::get( |
|
68
|
|
|
'/metrics/performance', [ |
|
69
|
|
|
'as' => 'performance.index', |
|
70
|
|
|
'uses' => 'PerformanceController@index', |
|
71
|
|
|
] |
|
72
|
|
|
); |
|
73
|
|
|
|
|
74
|
|
|
// request routes |
|
75
|
|
|
Route::get( |
|
76
|
|
|
'/metrics/requests', [ |
|
77
|
|
|
'as' => 'requests.index', |
|
78
|
|
|
'uses' => 'RequestController@index', |
|
79
|
|
|
] |
|
80
|
|
|
); |
|
81
|
|
|
|
|
82
|
|
|
Route::get( |
|
83
|
|
|
'/metrics/requests/{request}', [ |
|
84
|
|
|
'as' => 'requests.show', |
|
85
|
|
|
'uses' => 'RequestController@show', |
|
86
|
|
|
] |
|
87
|
|
|
); |
|
88
|
|
|
|
|
89
|
|
|
// notifications routes |
|
90
|
|
|
Route::get( |
|
91
|
|
|
'/metrics/notifications', [ |
|
92
|
|
|
'as' => 'notifications.index', |
|
93
|
|
|
'uses' => 'NotificationController@index', |
|
94
|
|
|
] |
|
95
|
|
|
); |
|
96
|
|
|
|
|
97
|
|
|
Route::post( |
|
98
|
|
|
'/metrics/notifications/edit', [ |
|
99
|
|
|
'as' => 'notifications.update', |
|
100
|
|
|
'uses' => 'NotificationController@update', |
|
101
|
|
|
] |
|
102
|
|
|
); |
|
103
|
|
|
|
|
104
|
|
|
} |
|
105
|
|
|
); |
|
106
|
|
|
} |
|
107
|
|
|
); |
|
108
|
|
|
} |
|
109
|
|
|
); |
|
110
|
|
|
// } |
|
111
|
|
|
// ); |
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.