Fix most of the index with json laravel api endpoints.

This commit is contained in:
James Cole
2024-08-03 13:15:39 +02:00
parent 5e6034fc86
commit 762d898fee
9 changed files with 221 additions and 49 deletions

View File

@@ -34,9 +34,7 @@ trait ValidateSortParameters
if (null === $params) {
return false;
}
$config = config(sprintf('api.full_data_set.%s', $class)) ?? [];
$config = config('api.full_data_set')[$class] ?? [];
foreach ($params->all() as $field) {
if (in_array($field->name(), $config, true)) {
Log::debug('TRUE');