hashids.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /*
  3. * This file is part of Laravel Hashids.
  4. *
  5. * (c) Vincent Klaiber <hello@vinkla.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. return [
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Default Connection Name
  15. |--------------------------------------------------------------------------
  16. |
  17. | Here you may specify which of the connections below you wish to use as
  18. | your default connection for all work. Of course, you may use many
  19. | connections at once using the manager class.
  20. |
  21. */
  22. 'default' => 'main',
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Hashids Connections
  26. |--------------------------------------------------------------------------
  27. |
  28. | Here are each of the connections setup for your application. Example
  29. | configuration has been included, but you may add as many connections as
  30. | you would like.
  31. |
  32. */
  33. 'connections' => [
  34. 'main' => [
  35. 'salt' => env('APP_KEY'),
  36. 'length' => 24,
  37. ],
  38. 'alternative' => [
  39. 'salt' => 'your-salt-string',
  40. 'length' => 'your-length-integer',
  41. ],
  42. ],
  43. ];