選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

67 行
1.5KB

  1. <?php
  2. declare(strict_types=1);
  3. return [
  4. 'session' => 'cartalyst_sentinel',
  5. 'cookie' => 'cartalyst_sentinel',
  6. 'users' => [
  7. 'model' => 'Cartalyst\Sentinel\Users\EloquentUser',
  8. ],
  9. 'roles' => [
  10. 'model' => 'Cartalyst\Sentinel\Roles\EloquentRole',
  11. ],
  12. 'permissions' => [
  13. 'class' => 'Cartalyst\Sentinel\Permissions\StandardPermissions',
  14. ],
  15. 'persistences' => [
  16. 'model' => 'Cartalyst\Sentinel\Persistences\EloquentPersistence',
  17. 'single' => false,
  18. ],
  19. // Only throttle is enabled; activation can be re-added when a registration flow exists.
  20. 'checkpoints' => [
  21. 'throttle',
  22. ],
  23. 'activations' => [
  24. 'model' => 'Cartalyst\Sentinel\Activations\EloquentActivation',
  25. 'expires' => 259200,
  26. 'lottery' => [2, 100],
  27. ],
  28. 'reminders' => [
  29. 'model' => 'Cartalyst\Sentinel\Reminders\EloquentReminder',
  30. 'expires' => 14400,
  31. 'lottery' => [2, 100],
  32. ],
  33. 'throttling' => [
  34. 'model' => 'Cartalyst\Sentinel\Throttling\EloquentThrottle',
  35. 'global' => [
  36. 'interval' => 900,
  37. 'thresholds' => [
  38. 10 => 1,
  39. 20 => 2,
  40. 30 => 4,
  41. 40 => 8,
  42. 50 => 16,
  43. 60 => 32,
  44. ],
  45. ],
  46. 'ip' => [
  47. 'interval' => 900,
  48. 'thresholds' => 5,
  49. ],
  50. 'user' => [
  51. 'interval' => 900,
  52. 'thresholds' => 5,
  53. ],
  54. ],
  55. ];

Powered by TurnKey Linux.