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