public function findOrFail($id, $columns = ['*'])
{
$result = $this->find($id, $columns);
if (is_array($id)) {
if (count($result) == count(array_unique($id))) {
return $result;
}
} elseif (!is_null($result)) {
return $result;
}
throw (new ModelNotFoundException())->setModel(get_class($this->model), $id);
}