public function getByIds(array $ids, array $columns = ['*'], array $with = [], array $load = [])
{
$items = $this->model;
if (!empty($with)) {
$items = $items->with($with);
}
$items = $items->whereIn('field', $ids)->get($columns);
if (!empty($load) and $items->count() > 0) {
$items->load($load);
return $items;
}
if ($items->count() > 0) {
return $items;
}
throw new RepositoryException('Items not found');
}