private function buscaDadosRequest(Request $request)
{
$queryString = $request->query->all();
$dadosOrdenacao = array_key_exists('sort', $queryString)
? $queryString['sort']
: [];
unset($queryString['sort']);
$paginaAtual = array_key_exists('page', $queryString)
? $queryString['page']
: 1;
unset($queryString['page']);
$itensPorPagina = array_key_exists('itensPorPagina', $queryString)
? $queryString['itensPorPagina']
: 5;
unset($queryString['itensPorPagina']);
return [$queryString, $dadosOrdenacao, $paginaAtual, $itensPorPagina];
}