tracker icon indicating copy to clipboard operation
tracker copied to clipboard

return Tracker::sessions(); not returning all the rows in tracker_sessions table

Open meeprakash25 opened this issue 7 years ago • 1 comments

This package is awesome and everything is working as intended but I want to count all the rows in tracker_sessions table, when I do

$sessions = Tracker::sessions();
return count($sessions);

It returns number of rows created today. How would I return all the rows in tracker::sessions table?

meeprakash25 avatar Oct 10 '18 04:10 meeprakash25

@meeprakash25 I have a similar problem. Did you find a solution? Perhaps this is the solution: Tracker::sessions(60 * 24 * 30, false)->count(); // 30 days

jackbaron avatar Aug 30 '19 02:08 jackbaron