@@ -35,7 +35,7 @@ trait IsApiController
3535 *
3636 * @return bool
3737 */
38- protected function allowUnlimitedResultsPerPage (): bool
38+ public function allowUnlimitedResultsPerPage (): bool
3939 {
4040 return property_exists ($ this , 'allow_unlimited_results ' ) ? $ this ->allow_unlimited_results : false ;
4141 }
@@ -176,7 +176,7 @@ protected function getIndexValidation(): array
176176 /**
177177 * Get the fields to always include
178178 */
179- protected function getFieldsToAlwaysInclude (): array
179+ public function getFieldsToAlwaysInclude (): array
180180 {
181181 return [
182182 'id '
@@ -186,7 +186,7 @@ protected function getFieldsToAlwaysInclude(): array
186186 /**
187187 * Get the index allowed fields
188188 */
189- protected function getIndexAllowedFields (): array
189+ public function getIndexAllowedFields (): array
190190 {
191191 return $ this ->getAllowedFields ();
192192 }
@@ -275,7 +275,7 @@ protected function modifyQuery(\Spatie\QueryBuilder\QueryBuilder $query): \Spati
275275 *
276276 * @return array
277277 */
278- protected function getAllowedAppendAttributes (): array
278+ public function getAllowedAppendAttributes (): array
279279 {
280280 return Arr::rootKeys ($ this ->getAllowedAppends ());
281281 }
@@ -285,15 +285,15 @@ protected function getAllowedAppendAttributes(): array
285285 *
286286 * @return array
287287 */
288- protected function getShowAllowedAppendAttributes (): array
288+ public function getShowAllowedAppendAttributes (): array
289289 {
290290 return Arr::rootKeys ($ this ->getAllShowAllowedAppends ());
291291 }
292292
293293 /**
294294 * Get the show allowed appends
295295 */
296- protected function getAllShowAllowedAppends (): array
296+ public function getAllShowAllowedAppends (): array
297297 {
298298 if (! $ this ->getShowAllowedAppends ()) {
299299 return $ this ->getAllowedAppends ();
@@ -309,7 +309,7 @@ protected function getAllShowAllowedAppends(): array
309309 /**
310310 * Get the allowed appends for only show endpoint
311311 */
312- protected function getShowAllowedAppends (): array
312+ public function getShowAllowedAppends (): array
313313 {
314314 return [];
315315 }
0 commit comments