snowflake.php 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Snowflake Epoch
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here you may configure the log settings for snowflake. Set the date
  9. | the application was develop started. Don't set the date of the future.
  10. | If service starts to move, don't change.
  11. |
  12. | Available Settings: Y-m-d H:i:s
  13. |
  14. */
  15. 'epoch' => env('SNOWFLAKE_EPOCH', '2019-04-01 00:00:00'),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Snowflake Configuration
  19. |--------------------------------------------------------------------------
  20. |
  21. | Here you may configure the log settings for snowflake.
  22. | If you are using multiple servers, please assign unique
  23. | ID(1-31) for Snowflake.
  24. |
  25. | Available Settings: 1-31
  26. |
  27. */
  28. 'worker_id' => env('SNOWFLAKE_WORKER_ID', 1),
  29. 'datacenter_id' => env('SNOWFLAKE_DATACENTER_ID', 1),
  30. ];