/** * Get the widget data to send to the view * @return array */ protected function data() { return ['entriesAmount' => $this->entry->countAll()]; }