Skip to content

Comments

allow track visit to log tracker_route_path_parameters#155

Closed
kevincobain2000 wants to merge 1 commit intoantonioribeiro:masterfrom
kevincobain2000:feature/track/visits
Closed

allow track visit to log tracker_route_path_parameters#155
kevincobain2000 wants to merge 1 commit intoantonioribeiro:masterfrom
kevincobain2000:feature/track/visits

Conversation

@kevincobain2000
Copy link

        Tracker::trackVisit(
            [
                'name' => 'v1.blogs.show',
                'action' => 'BlogController@show',
            ],
            [
              'path' => 'v1/blogs/1001',
              'parameter' => 'blog_id',
              'value' => 1001
            ]
        );
[vagrant@zapstore vagrant]$ mysql -uroot -ptracker tracker -e "select * from tracker_route_path_parameters"
+----+---------------+------------+-------+---------------------+-------------------+
| id | route_path_id | parameter  | value | created_at          | updated_at        |
+----+---------------+------------+-------+---------------------+-------------------+
|  4 |             9 | blog_id | 3     | 2016-02-15 19:08:32 | 2016-02-15 19:08:32 |
|  5 |            10 | blog_id | 1     | 2016-02-16 11:29:11 | 2016-02-16 11:29:11 |
|  6 |            11 | blog_id | 1     | 2016-02-16 11:34:29 | 2016-02-16 11:34:29 |
|  7 |            12 | blog_id | 2     | 2016-02-16 11:34:32 | 2016-02-16 11:34:32 |
|  8 |            13 | blog_id | 1     | 2016-02-16 11:47:21 | 2016-02-16 11:47:21 |
|  9 |            14 | blog_id | 100   | 2016-02-16 12:01:36 | 2016-02-16 12:01:36 |
| 10 |            15 | blog_id | 10    | 2016-02-16 12:01:40 | 2016-02-16 12:01:40 |
| 18 |            20 | blog_id | 1000  | 2016-02-16 15:19:03 | 2016-02-16 15:19:03 |⇦⇦⇦⇦
| 19 |            21 | blog_id | 1001  | 2016-02-16 16:24:09 | 2016-02-16 16:24:09 |⇦⇦⇦⇦
+----+---------------+------------+-------+---------------------+-------------------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant