public function getLast() { $result = $this->table()->where('batch', $this->getLastBatchNumber())->orderBy('mapping', 'desc')->get(); if (is_array($result)) { return $result; } return $result->toArray(); }