Authorizing users

TNTAnalytics exposes a dashboard at /tnt-analytics. By default, the dashboard is protected with an App\Http\Middleware\Authenticate::class middlware. You can change the middleware to your liking, or completely remove it.


return [

    /*
     * This is the table prefix of all tables that will be
     * used by TNT Analytics
     */
    'route_prefix'                    => 'tnt-analytics',

    'storage'                         => [
        'database' => [
            'connection' => env('DB_CONNECTION', 'mysql')
        ]
    ],

    'url_prefix'                      => env('TNT_ANALYTICS_PATH', 'tnt-analytics'),

    //represents the number of results that will be stored in the ids column
    'num_of_result_entries'           => env('TNT_NUMBER_OF_RESULT_ENTRIES', 20),

    'middleware'                      => [
        App\Http\Middleware\Authenticate::class
    ],

    'report_email'                    => env('TNT_REPORTS_EMAIL', null),
    'report_query_legth_greater_than' => env('TNT_REPORTS_QUERY_LENGHT_GREATER_THAN', 3)
];