opnform/config/model-stats.php

71 lines
2.4 KiB
PHP
Raw Normal View History

2022-09-20 19:59:52 +00:00
<?php
/**
* Config for JhumanJ/laravel-model-stats package.
*/
return [
/*
|--------------------------------------------------------------------------
| ModelStats Master Switch
|--------------------------------------------------------------------------
|
| This option may be used to disable all ModelStats watchers regardless
| of their individual configuration, which simply provides a single
| and convenient way to enable or disable ModelStats data storage.
|
*/
'enabled' => env('MODEL_STATS_ENABLED', true),
'allow_custom_code' => env('MODEL_STATS_CUSTOM_CODE', true),
/*
|--------------------------------------------------------------------------
| Route Middleware
|--------------------------------------------------------------------------
|
| These middleware will be assigned to every Telescope route, giving you
| the chance to add your own middleware to this list or change any of
| the existing middleware. Or, you can simply stick with this list.
|
*/
'middleware' => [
'api',
\Jhumanj\LaravelModelStats\Http\Middleware\Authorize::class,
],
/*
|--------------------------------------------------------------------------
| Database connection
|--------------------------------------------------------------------------
|
| Database connection used to query the data.
| This can be used to ensure a read-only connection, by using a custom connection with a read-only user.
|
*/
2024-02-23 10:54:12 +00:00
'query_database_connection' => env('MODEL_STATS_DB_CONNECTION', env('DB_CONNECTION')),
2022-09-20 19:59:52 +00:00
/*
|--------------------------------------------------------------------------
| Route Prefixes
|--------------------------------------------------------------------------
|
| You can change the route where your dashboards are. By default routes will
| be starting the '/stats' prefix, and names will start with 'stats.'.
|
*/
'routes_prefix' => 'stats',
'route_names_prefix' => 'stats.',
/*
|--------------------------------------------------------------------------
| ModelStats table name
|--------------------------------------------------------------------------
|
| As PostgreSQL table names seems to use dashes instead of underscore
| this configures the table name based on your connection.
|
*/
'table_name' => 'model-stats-dashboards',
];