예제 #1
0
 public function getNumber()
 {
     $total = $this->model->count();
     $new = $this->model->whereSeen(0)->count();
     return compact('total', 'new');
 }
예제 #2
0
 /**
  * Get number of records.
  *
  * @return array
  */
 public function getNumber()
 {
     $total = $this->model->count();
     $new = $this->model->count();
     return compact('total');
 }