1 | <?php |
||
2 | |||
3 | return [ |
||
4 | |||
5 | /* |
||
6 | |-------------------------------------------------------------------------- |
||
7 | | Laravel Logger Database Settings |
||
8 | |-------------------------------------------------------------------------- |
||
9 | */ |
||
10 | |||
11 | 'loggerDatabaseConnection' => env('LARAVEL_LOGGER_DATABASE_CONNECTION', env('DB_CONNECTION', 'mysql')), |
||
0 ignored issues
–
show
|
|||
12 | 'loggerDatabaseTable' => env('LARAVEL_LOGGER_DATABASE_TABLE', 'laravel_logger_activity'), |
||
13 | |||
14 | /* |
||
15 | |-------------------------------------------------------------------------- |
||
16 | | Laravel Logger Roles Settings - (laravel roles not required if false) |
||
17 | |-------------------------------------------------------------------------- |
||
18 | */ |
||
19 | |||
20 | 'rolesEnabled' => env('LARAVEL_LOGGER_ROLES_ENABLED', false), |
||
21 | 'rolesMiddlware' => env('LARAVEL_LOGGER_ROLES_MIDDLWARE', 'role:admin'), |
||
22 | |||
23 | /* |
||
24 | |-------------------------------------------------------------------------- |
||
25 | | Enable/Disable Laravel Logger Middlware |
||
26 | |-------------------------------------------------------------------------- |
||
27 | */ |
||
28 | |||
29 | 'loggerMiddlewareEnabled' => env('LARAVEL_LOGGER_MIDDLEWARE_ENABLED', true), |
||
30 | 'loggerMiddlewareExcept' => array_filter(explode(',', trim(env('LARAVEL_LOGGER_MIDDLEWARE_EXCEPT')))), |
||
0 ignored issues
–
show
|
|||
31 | |||
32 | /* |
||
33 | |-------------------------------------------------------------------------- |
||
34 | | Laravel Logger Authentication Listeners Enable/Disable |
||
35 | |-------------------------------------------------------------------------- |
||
36 | */ |
||
37 | 'logAllAuthEvents' => false, // May cause a lot of duplication. |
||
38 | 'logAuthAttempts' => false, // Successful and Failed - May cause a lot of duplication. |
||
39 | 'logFailedAuthAttempts' => true, // Failed Logins |
||
40 | 'logLockOut' => true, // Account Lockout |
||
41 | 'logPasswordReset' => true, // Password Resets |
||
42 | 'logSuccessfulLogin' => true, // Successful Login |
||
43 | 'logSuccessfulLogout' => true, // Successful Logout |
||
44 | |||
45 | /* |
||
46 | |-------------------------------------------------------------------------- |
||
47 | | Laravel Logger Search Enable/Disable |
||
48 | |-------------------------------------------------------------------------- |
||
49 | */ |
||
50 | 'enableSearch' => env('LARAVEL_LOGGER_ENABLE_SEARCH', 'false'), |
||
51 | |||
52 | /* |
||
53 | |-------------------------------------------------------------------------- |
||
54 | | Laravel Logger Search Parameters |
||
55 | |-------------------------------------------------------------------------- |
||
56 | */ |
||
57 | // you can add or remove from these options [description,user,method,route,ip] |
||
58 | 'searchFields' => env('LARAVEL_LOGGER_SEARCH_FIELDS', 'description,user,method,route,ip'), |
||
59 | |||
60 | /* |
||
61 | |-------------------------------------------------------------------------- |
||
62 | | Laravel Default User Model |
||
63 | |-------------------------------------------------------------------------- |
||
64 | */ |
||
65 | |||
66 | 'defaultUserModel' => env('LARAVEL_LOGGER_USER_MODEL', 'App\User'), |
||
67 | |||
68 | /* |
||
69 | |-------------------------------------------------------------------------- |
||
70 | | Laravel Default User ID Field |
||
71 | |-------------------------------------------------------------------------- |
||
72 | */ |
||
73 | |||
74 | 'defaultUserIDField' => env('LARAVEL_LOGGER_USER_ID_FIELD', 'id'), |
||
75 | |||
76 | /* |
||
77 | |-------------------------------------------------------------------------- |
||
78 | | Disable automatic Laravel Logger routes |
||
79 | | If you want to customise the routes the package uses, set this to true. |
||
80 | | For more information, see the README. |
||
81 | |-------------------------------------------------------------------------- |
||
82 | */ |
||
83 | |||
84 | 'disableRoutes' => env('LARAVEL_LOGGER_DISABLE_ROUTES', false), |
||
85 | |||
86 | /* |
||
87 | |-------------------------------------------------------------------------- |
||
88 | | Laravel Logger Pagination Settings |
||
89 | |-------------------------------------------------------------------------- |
||
90 | */ |
||
91 | 'loggerPaginationEnabled' => env('LARAVEL_LOGGER_PAGINATION_ENABLED', true), |
||
92 | 'loggerPaginationPerPage' => env('LARAVEL_LOGGER_PAGINATION_PER_PAGE', 25), |
||
93 | |||
94 | /* |
||
95 | |-------------------------------------------------------------------------- |
||
96 | | Laravel Logger Databales Settings - Not recommended with pagination. |
||
97 | |-------------------------------------------------------------------------- |
||
98 | */ |
||
99 | |||
100 | 'loggerDatatables' => env('LARAVEL_LOGGER_DATATABLES_ENABLED', false), |
||
101 | 'loggerDatatablesCSScdn' => 'https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css', |
||
0 ignored issues
–
show
|
|||
102 | 'loggerDatatablesJScdn' => 'https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js', |
||
0 ignored issues
–
show
|
|||
103 | 'loggerDatatablesJSVendorCdn' => 'https://cdn.datatables.net/1.10.15/js/dataTables.bootstrap.min.js', |
||
0 ignored issues
–
show
|
|||
104 | |||
105 | /* |
||
106 | |-------------------------------------------------------------------------- |
||
107 | | Laravel Logger Dashboard Settings |
||
108 | |-------------------------------------------------------------------------- |
||
109 | */ |
||
110 | |||
111 | 'enableSubMenu' => env('LARAVEL_LOGGER_DASHBOARD_MENU_ENABLED', true), |
||
112 | 'enableDrillDown' => env('LARAVEL_LOGGER_DASHBOARD_DRILLABLE', true), |
||
113 | |||
114 | /* |
||
115 | |-------------------------------------------------------------------------- |
||
116 | | Laravel Logger Failed to Log Settings |
||
117 | |-------------------------------------------------------------------------- |
||
118 | */ |
||
119 | |||
120 | 'logDBActivityLogFailuresToFile' => env('LARAVEL_LOGGER_LOG_RECORD_FAILURES_TO_FILE', true), |
||
121 | |||
122 | /* |
||
123 | |-------------------------------------------------------------------------- |
||
124 | | Laravel Logger Flash Messages |
||
125 | |-------------------------------------------------------------------------- |
||
126 | */ |
||
127 | |||
128 | 'enablePackageFlashMessageBlade' => env('LARAVEL_LOGGER_FLASH_MESSAGE_BLADE_ENABLED', true), |
||
129 | |||
130 | /* |
||
131 | |-------------------------------------------------------------------------- |
||
132 | | Blade settings |
||
133 | |-------------------------------------------------------------------------- |
||
134 | */ |
||
135 | |||
136 | // The parent Blade file |
||
137 | 'loggerBladeExtended' => env('LARAVEL_LOGGER_LAYOUT', 'layouts.app'), |
||
138 | |||
139 | // Switch Between bootstrap 3 `panel` and bootstrap 4 `card` classes |
||
140 | 'bootstapVersion' => env('LARAVEL_LOGGER_BOOTSTRAP_VERSION', '4'), |
||
141 | |||
142 | // Additional Card classes for styling - |
||
143 | // See: https://getbootstrap.com/docs/4.0/components/card/#background-and-color |
||
144 | // Example classes: 'text-white bg-primary mb-3' |
||
145 | 'bootstrapCardClasses' => '', |
||
146 | |||
147 | // Blade Extension Placement |
||
148 | 'bladePlacement' => env('LARAVEL_LOGGER_BLADE_PLACEMENT', 'yield'), |
||
149 | 'bladePlacementCss' => env('LARAVEL_LOGGER_BLADE_PLACEMENT_CSS', 'template_linked_css'), |
||
150 | 'bladePlacementJs' => env('LARAVEL_LOGGER_BLADE_PLACEMENT_JS', 'footer_scripts'), |
||
151 | |||
152 | /* |
||
153 | |-------------------------------------------------------------------------- |
||
154 | | Laravel Logger Dependencies - allows for easier builds into other projects |
||
155 | |-------------------------------------------------------------------------- |
||
156 | */ |
||
157 | |||
158 | // jQuery |
||
159 | 'enablejQueryCDN' => env('LARAVEL_LOGGER_JQUERY_CDN_ENABLED', true), |
||
160 | 'JQueryCDN' => env('LARAVEL_LOGGER_JQUERY_CDN_URL', 'https://code.jquery.com/jquery-3.2.1.slim.min.js'), |
||
0 ignored issues
–
show
|
|||
161 | |||
162 | // Bootstrap |
||
163 | 'enableBootstrapCssCDN' => env('LARAVEL_LOGGER_BOOTSTRAP_CSS_CDN_ENABLED', true), |
||
164 | 'bootstrapCssCDN' => env('LARAVEL_LOGGER_BOOTSTRAP_CSS_CDN_URL', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'), |
||
0 ignored issues
–
show
|
|||
165 | 'enableBootstrapJsCDN' => env('LARAVEL_LOGGER_BOOTSTRAP_JS_CDN_ENABLED', true), |
||
166 | 'bootstrapJsCDN' => env('LARAVEL_LOGGER_BOOTSTRAP_JS_CDN_URL', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js'), |
||
0 ignored issues
–
show
|
|||
167 | 'enablePopperJsCDN' => env('LARAVEL_LOGGER_POPPER_JS_CDN_ENABLED', true), |
||
168 | 'popperJsCDN' => env('LARAVEL_LOGGER_POPPER_JS_CDN_URL', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js'), |
||
0 ignored issues
–
show
|
|||
169 | |||
170 | // Font Awesome |
||
171 | 'enableFontAwesomeCDN' => env('LARAVEL_LOGGER_FONT_AWESOME_CDN_ENABLED', true), |
||
172 | 'fontAwesomeCDN' => env('LARAVEL_LOGGER_FONT_AWESOME_CDN_URL', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'), |
||
0 ignored issues
–
show
|
|||
173 | |||
174 | ]; |
||
175 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.