Exemple #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public static function index()
 {
     // $pageViews= \Tracker::sessions(60*24);
     $pageViews = \Tracker::sessions(60 * 24);
     $count = count($pageViews);
     $range = \Tracker::pageViews(60 * 24 * \Session::get('tracker.stats.days'));
     return View::make('admin.admin-content')->with('pageViews', $pageViews)->with('range', $range)->with('count', $count);
 }