datatables.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. return [
  3. /**
  4. * DataTables search options.
  5. */
  6. 'search' => [
  7. /**
  8. * Smart search will enclose search keyword with wildcard string "%keyword%".
  9. * SQL: column LIKE "%keyword%"
  10. */
  11. 'smart' => true,
  12. /**
  13. * Case insensitive will search the keyword in lower case format.
  14. * SQL: LOWER(column) LIKE LOWER(keyword)
  15. */
  16. 'case_insensitive' => true,
  17. /**
  18. * Wild card will add "%" in between every characters of the keyword.
  19. * SQL: column LIKE "%k%e%y%w%o%r%d%"
  20. */
  21. 'use_wildcards' => false,
  22. ],
  23. /**
  24. * DataTables fractal configurations.
  25. */
  26. 'fractal' => [
  27. /**
  28. * Request key name to parse includes on fractal.
  29. */
  30. 'includes' => 'include',
  31. /**
  32. * Default fractal serializer.
  33. */
  34. 'serializer' => 'League\Fractal\Serializer\DataArraySerializer',
  35. ],
  36. /**
  37. * DataTables internal index id response column name.
  38. */
  39. 'index_column' => 'DT_Row_Index',
  40. ];