Add cache_enabled key to your config\tracker.php:
/*
* Enable cache?
*/
'cache_enabled' => true,
php artisan tracker:tables
php artisan migrate
You'll have to upgrade your migrations:
1 - Rollback the last one: php artisan tracker:tables
2 - Delete the following files from your database\migrations:
2015_11_23_311097_create_tracker_languages_table.php
2015_11_23_311098_add_language_id_column_to_sessions.php
2015_11_23_311099_add_tracker_language_foreign_key_to_sessions.php
2015_11_23_311100_add_nullable_to_tracker_error.php
3 - Run php artisan tracker:tables
to upgrade them
4 - Migrate: php artisan migrate
A massive update happened at StartBootstrap, you need to download and unzip the admin frontend again:
rm -rf public/templates/sb-admin-v2
wget --output-document=/tmp/sba2.zip http://startbootstrap.com/downloads/sb-admin-2.zip
unzip /tmp/sba2.zip -d public/templates/
As tracker_route_paths.route_id
column was wrongly set to string, you need to change it to int8 or bigint. This is how you do this
ALTER TABLE "tracker_route_paths" ALTER COLUMN route_id TYPE BIGINT
USING CAST(CASE route_id WHEN '' THEN NULL ELSE route_id END AS BIGINT)
ALTER TABLE tracker_route_paths CHANGE route_id route_id bigint unsigned NULL;
'log_exceptions' => true,
'authenticated_user_username_column' => 'email',
'do_not_track_routes' => array(
'tracker.stats.*',
),
wget --output-document=/tmp/sba2.zip http://startbootstrap.com/downloads/sb-admin-v2.zip
unzip /tmp/sba2.zip -d public/templates/
/**
* Enable the Stats Panel?
*/
'stats_panel_enabled' => false,
/**
* Stats Panel routes before filter
*
* You better drop an 'auth' filter here.
*/
'stats_routes_before_filter' => '',
/**
* Stats Panel template path
*/
'stats_template_path' => '/templates/sb-admin-v2',
/**
* Stats Panel base uri.
*
* If your site url is http://wwww.mysite.com, then your stats page will be:
*
* http://wwww.mysite.com/stats
*
*/
'stats_base_uri' => 'stats',
/**
* Stats Panel layout view
*/
'stats_layout' => 'pragmarx/tracker::layout',
/**
* Stats Panel controllers namespace
*/
'stats_controllers_namespace' => 'PragmaRX\Tracker\Vendor\Laravel\Controllers',
'stats_panel_enabled' => true,
'log_geoip' => true,
'log_user_agents' => true,
'log_users' => true,
'log_devices' => true,
'log_referers' => true,
'log_paths' => true,
'log_queries' => true,
'log_routes' => true,
- Add a is_robot boolean column to:
ALTER TABLE tracker_sessions ADD is_robot BOOL;
- Add
'do_not_track_robots' => true or false,
totracker\config.php
. - Change
tracker_events_log.class_id
to be a nullable column.