Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit 7f5e224

Browse files
author
Robert Kummer
committed
re-supporting Laravel 4.1 (refs #13)
1 parent 2f082de commit 7f5e224

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Ipunkt/LaravelAnalytics/TrackingBag.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ public function add($tracking)
3838
*/
3939
public function get()
4040
{
41+
$trackings = [];
4142
if (Session::has($this->sessionIdentifier)) {
42-
return Session::pull($this->sessionIdentifier);
43+
$trackings = Session::get($this->sessionIdentifier);
44+
Session::forget($this->sessionIdentifier);
4345
}
4446

45-
return [];
47+
return $trackings;
4648
}
47-
}
49+
}

0 commit comments

Comments
 (0)