Ejemplo n.º 1
0
 public function logshistoricalAction()
 {
     $records = AccessReport::find(['stamp' => ['$gt' => time() - 86400]])->sortBy(['stamp' => -1])->limit(50);
     return $records;
 }