public function getRecords() { if (!$this->records) { $this->records = $this->entity->all(); } return $this->records; }
public function getData() { return $this->data ?? $this->entity->all()->toArray(); }