|
16 | 16 | | |
17 | 17 | */ |
18 | 18 |
|
19 | | - 'enabled' => env('MODEL_STATS_ENABLED', true), |
20 | | - 'allow_custom_code' => env('MODEL_STATS_CUSTOM_CODE', false), |
| 19 | + 'enabled' => env('MODEL_STATS_ENABLED', true), |
| 20 | + 'allow_custom_code' => env('MODEL_STATS_CUSTOM_CODE', false), |
21 | 21 |
|
22 | 22 | /* |
23 | 23 | |-------------------------------------------------------------------------- |
|
29 | 29 | | the existing middleware. Or, you can simply stick with this list. |
30 | 30 | | |
31 | 31 | */ |
32 | | - 'middleware' => [ |
| 32 | + 'middleware' => [ |
33 | 33 | 'web', |
34 | 34 | \Jhumanj\LaravelModelStats\Http\Middleware\Authorize::class, |
35 | 35 | ], |
|
43 | 43 | | this configures the table name based on your connection. |
44 | 44 | | |
45 | 45 | */ |
46 | | - 'table_name' => 'model_stats_dashboards', |
| 46 | + 'table_name' => 'model_stats_dashboards', |
47 | 47 |
|
48 | 48 | /* |
49 | 49 | |-------------------------------------------------------------------------- |
|
54 | 54 | | This can be used to ensure a read-only connection, by using a custom connection with a read-only user. |
55 | 55 | | |
56 | 56 | */ |
57 | | - 'query_database_connection' => env('MODEL_STATS_DB_CONNECTION', env('DB_CONNECTION')), |
| 57 | + 'query_database_connection' => env('MODEL_STATS_DB_CONNECTION', env('DB_CONNECTION')), |
58 | 58 |
|
59 | 59 | /* |
60 | 60 | |-------------------------------------------------------------------------- |
|
65 | 65 | | be starting the '/stats' prefix, and names will start with 'stats.'. |
66 | 66 | | |
67 | 67 | */ |
68 | | - 'routes_prefix' => 'stats', |
| 68 | + 'routes_prefix' => 'stats', |
69 | 69 | 'route_names_prefix' => 'stats.', |
70 | 70 | ]; |
0 commit comments