Default all segment contexts to include driver info.

This commit is contained in:
James Brooks 2015-05-23 13:30:18 +01:00
parent 1af50d991e
commit 65aaa6402a

View File

@ -92,6 +92,9 @@ if (!function_exists('segment_track')) {
'context' => [
'locale' => Config::get('app.locale'),
'timezone' => Setting::get('app_timezone'),
'DB_DRIVER' => getenv('DB_DRIVER'),
'CACHE_DRIVER' => getenv('CACHE_DRIVER'),
'SESSION_DRIVER' => getenv('SESSION_DRIVER'),
],
]);
} else {
@ -123,6 +126,9 @@ if (!function_exists('segment_page')) {
'context' => [
'locale' => Config::get('app.locale'),
'timezone' => Setting::get('app_timezone'),
'DB_DRIVER' => getenv('DB_DRIVER'),
'CACHE_DRIVER' => getenv('CACHE_DRIVER'),
'SESSION_DRIVER' => getenv('SESSION_DRIVER'),
],
]);
} else {