handler($filters); } /** * @param Builder $query * @return Model * @throws ResourceNotFoundException */ public function getResults(Builder $query): Model { if(!$query->exists()){ throw new ResourceNotFoundException('Unable to find any record based on the criteria provided'); } return $query->first(); } }