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