You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
905 B

  1. <?php
  2. /**
  3. * @see https://github.com/spatie/laravel-query-builder
  4. */
  5. return [
  6. /*
  7. * By default the package will use the `include`, `filter`, `sort`
  8. * and `fields` query parameters as described in the readme.
  9. *
  10. * You can customize these query string parameters here.
  11. */
  12. 'parameters' => [
  13. 'include' => 'include',
  14. 'filter' => 'filter',
  15. 'sort' => 'sort',
  16. 'fields' => 'fields',
  17. 'append' => 'append',
  18. ],
  19. /*
  20. * Related model counts are included using the relationship name suffixed with this string.
  21. * For example: GET /users?include=postsCount
  22. */
  23. 'count_suffix' => 'Count',
  24. /*
  25. * By default the package will throw an `InvalidFilterQuery` exception when a filter in the
  26. * URL is not allowed in the `allowedFilters()` method.
  27. */
  28. 'disable_invalid_filter_query_exception' => false,
  29. ];